diff --git a/index.html b/index.html
index 00ab729..9722582 100644
--- a/index.html
+++ b/index.html
@@ -20,7 +20,7 @@
-
+
diff --git a/src/store/apiStore.ts b/src/store/apiStore.ts
index 5e697c5..05a2b9c 100644
--- a/src/store/apiStore.ts
+++ b/src/store/apiStore.ts
@@ -78,6 +78,7 @@ export const useApiStore = defineStore('apiStore', {
},
async fetchActiveData() {
+ if (this.dataStatuses.connection == Status.Data.Offline) return;
if (!this.activeData) this.dataStatuses.connection = Status.Data.Loading;
try {
diff --git a/vite.config.ts b/vite.config.ts
index b9e9271..fd7ac35 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -29,7 +29,7 @@ export default defineConfig({
{
urlPattern:
/^https:\/\/stacjownik.spythere.eu\/api\/(getVehiclesData|getDonators|getSceneries)/i,
- handler: 'NetworkFirst',
+ handler: 'CacheFirst',
options: {
cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] }