We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cacheAssets
1 parent 8de8b37 commit dbf6d67Copy full SHA for dbf6d67
packages/workbox/lib/options.js
@@ -42,7 +42,7 @@ function getOptions (moduleOptions) {
42
if (!options.assetsURLPattern) {
43
options.assetsURLPattern = joinUrl(options.publicPath, HMRRegex)
44
}
45
- if (options.cacheAssets) {
+ if (options.cacheAssets && !this.options.dev) {
46
options.runtimeCaching.push({
47
urlPattern: options.assetsURLPattern,
48
handler: 'CacheFirst'
0 commit comments