Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten: Update wz-workbox-config.js #3637

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion platforms/emscripten/wz-workbox-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
],
globIgnores: [
'**\/node_modules\/**\/*',
'**/service-worker.js', // do not precache the service-worker file (which shouldn't exist when this is run, but just in case)
'**/*.data', // do not precache .data files, which are often huge
'**/*.debug.wasm', // do not precache wasm debug symbols
'**\/music\/**\/*', // do not precache music (which is optional)
Expand Down Expand Up @@ -74,7 +75,7 @@ module.exports = {
// Backup on-demand caching of any additional utilized CSS and JS files for offline use
// (useful in case someone forgot to update the additionalManifestEntries above)
{
urlPattern: ({url}) => (url.pathname.endsWith('.js') || url.pathname.endsWith('.css')) && url.origin !== 'https://static.cloudflareinsights.com',
urlPattern: ({url}) => (url.pathname.endsWith('.js') || url.pathname.endsWith('.css')) && !url.pathname.endsWith('service-worker.js') && url.origin !== 'https://static.cloudflareinsights.com',
handler: 'NetworkFirst',
options: {
cacheName: 'additional-dependencies',
Expand Down
Loading