Skip to content

Commit

Permalink
fix(sw): StaleWhileRevalidate for page-data and app-data
Browse files Browse the repository at this point in the history
  • Loading branch information
nibtime committed Jun 16, 2020
1 parent f8227c3 commit c85695a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-offline/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ exports.onPostBuild = (
{
// page-data.json files are not content hashed
urlPattern: /^https?:.*\page-data\/.*\/page-data\.json/,
handler: `NetworkFirst`,
handler: `StaleWhileRevalidate`,
},
{
// app-data.json is not content hashed
urlPattern: /^https?:.*\/page-data\/app-data\.json/,
handler: `NetworkFirst`,
handler: `StaleWhileRevalidate`,
},
{
// Add runtime caching of various other page resources
Expand Down

0 comments on commit c85695a

Please sign in to comment.