aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.js b/build.js
index 163e9dc..6a10eda 100644
--- a/build.js
+++ b/build.js
@@ -86,6 +86,10 @@ self.addEventListener('fetch', (e) => {
// Feed snapshots have their own short HTTP lifetime; never freeze one in Cache Storage.
if (u.pathname === '/api/feed') return;
+ // Streams: a live playlist grows every two seconds (frozen at its first
+ // copy, the player stalled and failed), and video segments would fill the
+ // cache with what's already been watched.
+ if (u.pathname.startsWith('/live/') || u.pathname.startsWith('/vmedia/hls')) return;
if (req.mode === 'navigate') {
// A note page comes back with its thread rendered into it (the server's