Service worker: stop CacheFirst-caching videos under /images/ so replaced videos play; v2.36.2
Publish Container / build (push) Has been cancelled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-13 11:36:48 -04:00
1 parent 753b5c77cf
commit 059fc7f8c0
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ export default defineConfig({
options: { cacheName: 'api-content', expiration: { maxAgeSeconds: 3600 } },
},
{
urlPattern: /\/images\//,
urlPattern: /\/images\/.*\.(?!mp4|webm|mov)[a-z0-9]+(\?.*)?$/i,
handler: 'CacheFirst',
options: { cacheName: 'images', expiration: { maxEntries: 60, maxAgeSeconds: 86400 * 30 } },
},