Browse Source

fix: force video assets to never use the cache

pull/3035/head
Gabe Kangas 2 years ago
parent
commit
d53cd65767
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 8
      web/next.config.js

8
web/next.config.js

@ -7,7 +7,13 @@ const runtimeCaching = require('next-pwa/cache'); @@ -7,7 +7,13 @@ const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
runtimeCaching,
runtimeCaching: [
...runtimeCaching,
{
urlPattern: /\.(?:ts|m3u8)$/i,
handler: 'NetworkOnly',
},
],
register: true,
skipWaiting: true,
publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],

Loading…
Cancel
Save