From 059fc7f8c0529479aa6e0c3cf53c82d79462be50 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Tue, 13 Oct 2026 11:36:48 -0400 Subject: [PATCH] Service worker: stop CacheFirst-caching videos under /images/ so replaced videos play; v2.36.2 Co-Authored-By: Claude Sonnet 5.5 --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index ea30167..542bb6f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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 } }, },