chore: updated networking settings

This commit is contained in:
2025-04-14 19:22:40 +02:00
parent c5e53057eb
commit be55bac9fe
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -53,8 +53,6 @@ export const useApiStore = defineStore('apiStore', {
}, },
updateTick(t: number) { updateTick(t: number) {
if (this.dataStatuses.connection == Status.Data.Offline) return;
// Static data refresh // Static data refresh
if (t >= this.nextDataCheckTime) { if (t >= this.nextDataCheckTime) {
this.fetchDonatorsData(); this.fetchDonatorsData();
+1 -1
View File
@@ -31,7 +31,7 @@ export default defineConfig({
{ {
urlPattern: urlPattern:
/^https:\/\/stacjownik.spythere.eu\/api\/(getVehicles|getDonators|getSceneries)/i, /^https:\/\/stacjownik.spythere.eu\/api\/(getVehicles|getDonators|getSceneries)/i,
handler: 'StaleWhileRevalidate', handler: 'NetworkFirst',
options: { options: {
cacheName: 'stacjownik-api-cache', cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] } cacheableResponse: { statuses: [0, 200] }