mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: cache control
This commit is contained in:
@@ -51,6 +51,12 @@ export const useApiStore = defineStore('apiStore', {
|
|||||||
// Static data
|
// Static data
|
||||||
this.fetchDonatorsData();
|
this.fetchDonatorsData();
|
||||||
this.fetchStationsGeneralInfo();
|
this.fetchStationsGeneralInfo();
|
||||||
|
|
||||||
|
// Ponowne pobieranie danych po ServiceWorkerze
|
||||||
|
setTimeout(() => {
|
||||||
|
this.fetchStationsGeneralInfo();
|
||||||
|
}, Math.floor(Math.random() * 500) + 1000);
|
||||||
|
|
||||||
this.fetchVehiclesInfo();
|
this.fetchVehiclesInfo();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user