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-netlify): do not cache service worker file on Netlify #9680

Merged

Conversation

matthieuauger
Copy link
Contributor

@matthieuauger matthieuauger force-pushed the topics/dont-cache-service-worker-netlify branch from b95f29d to fc40c49 Compare November 3, 2018 14:30
@matthieuauger matthieuauger changed the title Do not cache service worker file on Netlify feat(gatsby-plugin-netlify) Do not cache service worker file on Netlify Nov 3, 2018
@DaleLJefferson
Copy link

Is this PR compatible with #9245

@matthieuauger
Copy link
Contributor Author

@dalejefferson Yes, if the line provided by @tanvibhakta is added after mine, it will

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.

Looks good @matthieuauger! Sorry for late merge :(

@pieh pieh changed the title feat(gatsby-plugin-netlify) Do not cache service worker file on Netlify fix(gatsby-plugin-netlify): do not cache service worker file on Netlify Nov 15, 2018
@pieh pieh merged commit 9280fd7 into gatsbyjs:master Nov 15, 2018
@gatsbot
Copy link

gatsbot bot commented Nov 15, 2018

Holy buckets, @matthieuauger — we just merged your PR to Gatsby! 💪💜

Gatsby is built by awesome people like you. Let us say “thanks” in two ways:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (Currently we’ve got a couple t-shirts available, plus some socks that are really razzing our berries right now.)
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’.

Thanks again!

@pieh
Copy link
Contributor

pieh commented Nov 15, 2018

@matthieuauger, @dalejefferson That PR need changes - we won't be targetting all js files - we will read manifest from webpack and use assets paths generated by webpack (which will have hash for cache busting)

@pieh
Copy link
Contributor

pieh commented Nov 15, 2018

Published [email protected]

@matthieuauger matthieuauger deleted the topics/dont-cache-service-worker-netlify branch November 15, 2018 22:52
@matthieuauger
Copy link
Contributor Author

@pieh Really no need to be sorry, thanks for what you do!

About you last comment any hints about how we should perform this so I could have a look?

Thanks

gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
…fy (gatsbyjs#9680)

Related to https://www.netlify.com/blog/2018/06/28/5-pro-tips-and-plugins-for-optimizing-your-gatsby---netlify-site/#4-get-your-service-workers-um-working

Recommandation is not to cache service worker file : w3c/ServiceWorker#893

<!--
  Q. Which branch should I use for my pull request?
  A. Use `master` branch (probably).

  Q. Which branch if my change is a bug fix for Gatsby v1?
  A. In this case, you should use the `v1` branch

  Q. Which branch if I'm still not sure?
  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)

  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.

  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/
-->
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