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 abhiisheek committed May 19, 2023
1 parent 1d4265a commit cf1e1c8
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 cf1e1c8

Please sign in to comment.