-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gatsby-plugin-offline): Update regex to catch new static query results #26329
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you augment the comment and also you should be able to remove
{
// app-data.json is not content hashed
urlPattern: /^https?:.*\/page-data\/app-data\.json/,
handler: `StaleWhileRevalidate`,
},
@@ -140,7 +140,7 @@ exports.onPostBuild = ( | |||
}, | |||
{ | |||
// page-data.json files are not content hashed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// page-data.json files are not content hashed | |
// Files inside page-data folder are not content hashed (page-data, app-data, static-queries). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes. Great catch!
Gatsby Cloud Build Reportgatsby 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 36m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks works as expected!
As a result of #26242, static query results are now stored in
/public/page-data/sq/
This PR adjusts the glob in
gatsby-plugin-offline
so that caches these files as well.