Skip to content

Commit

Permalink
Increase Workbox's maximumFileSizeToCacheInBytes (#10048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Nov 10, 2020
1 parent aafe8af commit 5867170
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 5867170

Please sign in to comment.