Skip to content

Commit

Permalink
docs: Updated gatsby-plugin-offline README with correct default workb…
Browse files Browse the repository at this point in the history
…ox config (#26295)

* Updated gatsby-plugin-offline README with correct default workbox config

* Update for #26329

Co-authored-by: Sidhartha Chatterjee <[email protected]>
  • Loading branch information
devfive and sidharthachatterjee authored Aug 10, 2020
1 parent 75ab9b8 commit a5c76fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/gatsby-plugin-offline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ const options = {
handler: `CacheFirst`,
},
{
// page-data.json files are not content hashed
urlPattern: /^https?:.*\page-data\/.*\/page-data\.json/,
handler: `NetworkFirst`,
// page-data.json files, static query results and app-data.json
// are not content hashed
urlPattern: /^https?:.*\/page-data\/.*\.json/,
handler: `StaleWhileRevalidate`,
},
{
// Add runtime caching of various other page resources
Expand Down

0 comments on commit a5c76fc

Please sign in to comment.