Skip to content

Commit a5c76fc

Browse files
docs: Updated gatsby-plugin-offline README with correct default workbox config (#26295)
* Updated gatsby-plugin-offline README with correct default workbox config * Update for #26329 Co-authored-by: Sidhartha Chatterjee <me@sidharthachatterjee.com>
1 parent 75ab9b8 commit a5c76fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/gatsby-plugin-offline/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ const options = {
146146
handler: `CacheFirst`,
147147
},
148148
{
149-
// page-data.json files are not content hashed
150-
urlPattern: /^https?:.*\page-data\/.*\/page-data\.json/,
151-
handler: `NetworkFirst`,
149+
// page-data.json files, static query results and app-data.json
150+
// are not content hashed
151+
urlPattern: /^https?:.*\/page-data\/.*\.json/,
152+
handler: `StaleWhileRevalidate`,
152153
},
153154
{
154155
// Add runtime caching of various other page resources

0 commit comments

Comments
 (0)