diff --git a/neode-ui/docker/nginx-demo.conf b/neode-ui/docker/nginx-demo.conf index ad1ba8ae..8eed97b4 100644 --- a/neode-ui/docker/nginx-demo.conf +++ b/neode-ui/docker/nginx-demo.conf @@ -187,8 +187,9 @@ http { try_files $uri $uri/ /index.html; } - # Cache static assets - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { + # Cache static assets (media too — the intro video/audio are versioned + # with ?v=N query busters, so immutable is safe) + location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|webp|mp4|webm|mp3|woff2?)$ { expires 1y; add_header Cache-Control "public, immutable"; } diff --git a/neode-ui/public/assets/video/video-intro.mp4 b/neode-ui/public/assets/video/video-intro.mp4 index 4ceb62d6..11e95592 100644 Binary files a/neode-ui/public/assets/video/video-intro.mp4 and b/neode-ui/public/assets/video/video-intro.mp4 differ diff --git a/neode-ui/src/App.vue b/neode-ui/src/App.vue index 01002a24..47a2c04e 100644 --- a/neode-ui/src/App.vue +++ b/neode-ui/src/App.vue @@ -433,6 +433,17 @@ onMounted(async () => { onboardingComplete, replayRequested, })) { + // Kick off the intro video download NOW: the splash's