chore: pwa vehicles cache

This commit is contained in:
2024-04-09 14:47:56 +02:00
parent 6255efd98d
commit d072692db7
+12 -2
View File
@@ -25,7 +25,7 @@ export default defineConfig({
runtimeCaching: [
{
urlPattern: /^https:\/\/rj.td2.info.pl\/dist\/img\/thumbnails\/.*/i,
urlPattern: new RegExp('^https://rj.td2.info.pl/dist/img/thumbnails/*', 'i'),
handler: 'CacheFirst',
options: {
cacheName: 'swdr-images-cache',
@@ -39,7 +39,7 @@ export default defineConfig({
},
},
{
urlPattern: /^https:\/\/static.spythere.eu\/images\/.*/i,
urlPattern: new RegExp('^https://static.spythere.eu/images/*', 'i'),
handler: 'CacheFirst',
options: {
cacheName: 'spythere-api-cache',
@@ -52,6 +52,16 @@ export default defineConfig({
},
},
},
{
urlPattern: new RegExp('^https://stacjownik.spythere.eu/vehicles', 'i'),
handler: 'NetworkFirst',
options: {
cacheName: 'vehicles-cache',
cacheableResponse: {
statuses: [200],
},
},
},
],
},
}),