Skip to content

Commit

Permalink
fix: increase precache max file size to 3 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Sep 2, 2024
1 parent feee056 commit b20ed22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/lib/pwa/injectPrecacheManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module.exports = function injectPrecacheManifest(paths, config) {
// Skip revision hashing for files with hash or semver in name:
// (see https://regex101.com/r/z4Hy9k/3/ for RegEx details)
dontCacheBustURLsMatching: /[.-][A-Za-z0-9-_]{8}\.|\d+\.\d+\.\d+/,
maximumFileSizeToCacheInBytes: 3072 * 1024, // 3 MB (default is 2 MB)
}

return injectManifest(injectManifestOptions).then(logManifestOutput)
Expand Down

0 comments on commit b20ed22

Please sign in to comment.