Skip to content

Commit

Permalink
Increase Workbox's maximumFileSizeToCacheInBytes (facebook#10048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick authored and wombleton committed Jun 1, 2021
1 parent 50ea8f1 commit bec20f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ module.exports = function (webpackEnv) {
swSrc,
dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./,
exclude: [/\.map$/, /asset-manifest\.json$/, /LICENSE/],
// Bump up the default maximum size (2mb) that's precached,
// to make lazy-loading failure scenarios less likely.
// See https://github.com/cra-template/pwa/issues/13#issuecomment-722667270
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
}),
// TypeScript type checking
useTypeScript &&
Expand Down

0 comments on commit bec20f8

Please sign in to comment.