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

Add checkbox or button to empty appCache in Cache API panel #794

Closed
Jaifroid opened this issue Jan 10, 2022 · 0 comments · Fixed by #797
Closed

Add checkbox or button to empty appCache in Cache API panel #794

Jaifroid opened this issue Jan 10, 2022 · 0 comments · Fixed by #797
Assignees
Milestone

Comments

@Jaifroid
Copy link
Member

Jaifroid commented Jan 10, 2022

This would mostly be a utility for development, but could also be useful for a user who needs to reset their app to the latest code for troubleshooting.

With the new code as a result of #771, in SW mode (and also in jQuery mode when being run from a secure server) the app will only update its own code if the appVersion number has changed. This complicates development because it is necessary to empty the appCache explicitly in DevTools before reloading the app's page, otherwise new code will not be displayed. A checkbox could be added in the Cache API panel under "Do not cache assets". This checkbox would read "Also empty app cache (refreshes app from server)". The checkbox would only appear if appCache is in use, and would be automatically unchecked if user turns "Cache assets" back on.

For an ordinary user, also, there may be times when the appCache has been filled incorrectly, or partial contents were cached. It would be useful to be able to "reset" the app from the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant