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

Avoid caching the service worker #2059

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Aug 3, 2017

Our service worker doesn't work very well, because it's served with the same expiration rules as all the other JS - one year expiration. This changes it to never be cached, so new pageloads will always check for a new service worker (this is recommended: w3c/ServiceWorker#893). Unfortunately, to break the CloudFlare cache without waiting a year, I also needed to rename the file.

This should fix some cases where DIM loads as a blank white screen and requires a force-refresh to actually work.

I also added some text that gets blown away on app load, but will try to help a bit in cases where JavaScript is disabled or the scripts completely fail to load.

@bhollis bhollis merged commit 6987246 into DestinyItemManager:master Aug 4, 2017
@bhollis bhollis deleted the cache-service-worker branch October 6, 2018 17:55
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.

None yet

2 participants