mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ff9341851 | |||
| f9276f6c71 | |||
| f4f9a4729f |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pojazdownik",
|
||||
"version": "1.8.1",
|
||||
"version": "1.8.2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
+17
-3
@@ -24,7 +24,7 @@ export default defineConfig({
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https:\/\/rj.td2.info.pl\/dist\/img\/thumbnails\/.*/i,
|
||||
handler: 'NetworkFirst',
|
||||
handler: 'CacheFirst',
|
||||
options: {
|
||||
cacheName: 'swdr-images-cache',
|
||||
expiration: {
|
||||
@@ -37,10 +37,24 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
{
|
||||
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/.*/i,
|
||||
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/data\/.*/i,
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'spythere-api-cache',
|
||||
cacheName: 'spythere-api-data-cache',
|
||||
expiration: {
|
||||
maxEntries: 150,
|
||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||
},
|
||||
cacheableResponse: {
|
||||
statuses: [0, 200],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/images\/.*/i,
|
||||
handler: 'CacheFirst',
|
||||
options: {
|
||||
cacheName: 'spythere-api-images-cache',
|
||||
expiration: {
|
||||
maxEntries: 150,
|
||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||
|
||||
Reference in New Issue
Block a user