From e81ebb1de9729ed823d864b01b9ed19a31368131 Mon Sep 17 00:00:00 2001 From: David Bailey <4248177+davidbailey00@users.noreply.github.com> Date: Tue, 12 Nov 2019 08:53:31 +0000 Subject: [PATCH] Use StaleWhileRevalidate for page-data files (#19342) --- packages/gatsby-plugin-offline/src/gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-offline/src/gatsby-node.js b/packages/gatsby-plugin-offline/src/gatsby-node.js index 328c6196c51da..8ac43ecc085d9 100644 --- a/packages/gatsby-plugin-offline/src/gatsby-node.js +++ b/packages/gatsby-plugin-offline/src/gatsby-node.js @@ -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