Skip to content
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): don't precache the index page #9603

Merged
merged 1 commit into from
Oct 31, 2018
Merged

fix(gatsby-plugin-offline): don't precache the index page #9603

merged 1 commit into from
Oct 31, 2018

Conversation

vtenfys
Copy link
Contributor

@vtenfys vtenfys commented Oct 31, 2018

Fixes #7997

Rationale: we don't need to precache the index page, because the offline plugin automatically caches resources it finds in the <head> of the page it was installed on. So it just means that resources are cached a little later.

@vtenfys vtenfys requested a review from pieh October 31, 2018 20:26
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

Thanks!

@pieh pieh merged commit 00284e0 into gatsbyjs:master Oct 31, 2018
@KyleAMathews
Copy link
Contributor

The original reason for caching the home page was to speed up it's initial render since like loading html from the server, it's faster for the browser to render html than to parse/eval js and then run the react app.

Could you test the speed index on a second load for a reasonably complex site in webpagetest.org to see if your change introduced any significant performance regressions?

gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
)

Fixes gatsbyjs#7997

Rationale: we don't need to precache the index page, because the offline plugin automatically caches resources it finds in the `<head>` of the page it was installed on. So it just means that resources are cached a little later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants