-
Notifications
You must be signed in to change notification settings - Fork 210
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
Offline cache issues (Remaining: display checksum of latest commit + date of last update) #605
Comments
1 similar comment
@jywarren the cache seems to be updating, please see the below gif, To change the cache version number we have to change it manually in sw.js file and then it will get update when we go to the website next time, it does not updates on reload. Please see the gif below : We can tie the npm version to the cache version, if we can get the value of npm version in sw.js. Do we manually update the value of npm version? I like the idea to isolate the cache code and would love to work on it! I will remove the other cache button, as it has no use. I would like to document the working as well. Thanks! |
Yes, that's exactly what I noticed too, the cache works fine for me. |
Some issues are fixed and docs part is mentioned in another issue #761. |
Hi all, regarding cache, we don't have an easy way to tell if it's being used, when it was updated, or what version we're using in the demo. I think we should consider turning caching off until we can address these as they may be preventing us from diagnosing and detecting these kinds of issues: |
I've updated the issue above to highlight our main problems and added a few more steps that could be broken out. |
@jywarren I think we can do something in the long term to improve the service worker, we can build it dynamically using maybe browserify or something. We can keep the code separately and maybe make a grunt task to compile it. |
Some parts were completed in #1364 |
Updated to show 2 remaining pieces - the checksum of the last commit and the date of last update. Thanks! |
Just reporting a few issues with the offline cache function, maybe related to #544.
Noting our main issues: we don't have an easy way to:
We can break out solutions and sub-issues from here. Just want to say the offline cache is AMAZING and has saved me a number of times when demonstrating this to people. Just looking to expand and refine it. Thank you!!!
examples/sw.js
? (I tried but to no effect)A new version is available. Click to update.
can we isolate all the cache-related code as much as possible into(Not possible because of scopes -- @harshkhandeparkar )/examples/lib/cache/...
?Sent from my OnePlus3 using FastHub
The text was updated successfully, but these errors were encountered: