Service worker: stop CacheFirst-caching videos under /images/ so replaced videos play; v2.36.2
Publish Container / build (push) Has been cancelled
Publish Container / build (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
753b5c77cf
commit
059fc7f8c0
1 file changed
+1
-1
+1
-1
@@ -39,7 +39,7 @@ export default defineConfig({
|
|||||||
options: { cacheName: 'api-content', expiration: { maxAgeSeconds: 3600 } },
|
options: { cacheName: 'api-content', expiration: { maxAgeSeconds: 3600 } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
urlPattern: /\/images\//,
|
urlPattern: /\/images\/.*\.(?!mp4|webm|mov)[a-z0-9]+(\?.*)?$/i,
|
||||||
handler: 'CacheFirst',
|
handler: 'CacheFirst',
|
||||||
options: { cacheName: 'images', expiration: { maxEntries: 60, maxAgeSeconds: 86400 * 30 } },
|
options: { cacheName: 'images', expiration: { maxEntries: 60, maxAgeSeconds: 86400 * 30 } },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user