Skip to content

Commit 75ab9b8

Browse files
fix(gatsby-plugin-offline): Update regex to catch new static query results (#26329)
* Update regex to catch new static query results * Update comment and remove unnecessary rule
1 parent 8fc269e commit 75ab9b8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

+3-7
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,9 @@ exports.onPostBuild = (
139139
handler: `CacheFirst`,
140140
},
141141
{
142-
// page-data.json files are not content hashed
143-
urlPattern: /^https?:.*\page-data\/.*\/page-data\.json/,
144-
handler: `StaleWhileRevalidate`,
145-
},
146-
{
147-
// app-data.json is not content hashed
148-
urlPattern: /^https?:.*\/page-data\/app-data\.json/,
142+
// page-data.json files, static query results and app-data.json
143+
// are not content hashed
144+
urlPattern: /^https?:.*\/page-data\/.*\.json/,
149145
handler: `StaleWhileRevalidate`,
150146
},
151147
{

0 commit comments

Comments
 (0)