Skip to content

Commit e4fd0ad

Browse files
authored
fix(gatsby-plugin-offline): add workboxConfig.maximumFileSizeToCacheInBytes to options schema (#27913)
1 parent 17a0d52 commit e4fd0ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/gatsby-plugin-offline/src/__tests__/gatsby-node.js

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ describe(`pluginOptionsSchema`, () => {
176176
},
177177
cacheId: `gatsby-plugin-offline`,
178178
dontCacheBustURLsMatching: /(\.js$|\.css$|static\/)/,
179+
maximumFileSizeToCacheInBytes: 4800,
179180
runtimeCaching: [
180181
{
181182
urlPattern: /(\.js$|\.css$|static\/)/,

packages/gatsby-plugin-offline/src/gatsby-node.js

+1
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ exports.pluginOptionsSchema = function ({ Joi }) {
234234
modifyURLPrefix: Joi.object().pattern(MATCH_ALL_KEYS, Joi.string()),
235235
cacheId: Joi.string(),
236236
dontCacheBustURLsMatching: Joi.object().instance(RegExp),
237+
maximumFileSizeToCacheInBytes: Joi.number(),
237238
runtimeCaching: Joi.array().items(
238239
Joi.object({
239240
urlPattern: Joi.object().instance(RegExp),

0 commit comments

Comments
 (0)