fix: force video assets to never use the cache

This commit is contained in:
Gabe Kangas 2023-05-19 20:03:41 -07:00
parent e8143c0cb3
commit d53cd65767
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

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