Skip to content

Commit

Permalink
Use StaleWhileRevalidate for page-data files (#19342)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtenfys authored and GatsbyJS Bot committed Nov 12, 2019
1 parent 976f6c8 commit e81ebb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-offline/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ exports.onPostBuild = (
{
// page-data.json files are not content hashed
urlPattern: /^https?:.*\page-data\/.*\/page-data\.json/,
handler: `NetworkFirst`,
handler: `StaleWhileRevalidate`,
},
{
// Add runtime caching of various other page resources
Expand Down

1 comment on commit e81ebb1

@zaycker
Copy link

@zaycker zaycker commented on e81ebb1 Feb 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why haven't you fixed documentation where described defaults with 'NetworkFirst' value?

Please sign in to comment.