-
Notifications
You must be signed in to change notification settings - Fork 29.4k
[flutter_tools] cache-bust in service worker #56786
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
[flutter_tools] cache-bust in service worker #56786
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
I was thinking about an integration test for this, We spin up a dart server to serve the app and then verify that http requests from it |
@yjbanov do you have any advice on debugging why chrome won't start up? I can get these to pass locally with |
<script defer src="main.dart.js" type="application/javascript"></script> | ||
<meta content="IE=Edge" http-equiv="X-UA-Compatible"> | ||
|
||
<title>Flutter Gallery</title> |
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.
This is not the gallery, is it?
This comment was marked as abuse.
This comment was marked as abuse.
I'm having the same issue, can we get a follow up on this? @jonahwilliams |
Description
Prevent HTTP cache from breaking invariants of service worker cache by forcing a new version through no-cache param. Fixes issue where a fetch request for
/#/
or other routes would not redirect to index.htmlAlso adds the functionality required for flutter/packages#150
Fixes #56532