From b20ed22f6f2f4c615f712de3047d5f2d8c77d638 Mon Sep 17 00:00:00 2001 From: Kai Vandivier Date: Mon, 2 Sep 2024 19:02:07 +0200 Subject: [PATCH] fix: increase precache max file size to 3 MB --- cli/src/lib/pwa/injectPrecacheManifest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/lib/pwa/injectPrecacheManifest.js b/cli/src/lib/pwa/injectPrecacheManifest.js index 0fb3e749..4a4cabd4 100644 --- a/cli/src/lib/pwa/injectPrecacheManifest.js +++ b/cli/src/lib/pwa/injectPrecacheManifest.js @@ -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)