mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-02 21:08:12 +00:00
chore: offline mode improvements; changed to CacheFirst strategy
This commit is contained in:
+1
-1
@@ -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] }
|
||||
|
||||
Reference in New Issue
Block a user