Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Clear native browser cache with JavaScript #937

Closed
LJWatson opened this issue May 28, 2017 · 1 comment
Closed

Clear native browser cache with JavaScript #937

LJWatson opened this issue May 28, 2017 · 1 comment

Comments

@LJWatson
Copy link
Collaborator

Migrated from Bugzilla 26666.

From the original issue:

"There is no way to force the browser to clear the cache of all the artifacts of your domain via javascript.

I'm humbly suggesting a simple window.navigator (most likely) exposed method for flushing the native browser cache of all artifacts of your domain.

Very useful for making sure the visiting client has a cleared cache for their next visit to your site / application.

navigator.browserCacheClear(); //something like this.

There would be no WRITE access to the cache, no inspecting READ access, but simply the ability to throw an API call in the hopes of your browser cache being cleared for your domain.">

@chaals
Copy link
Collaborator

chaals commented Dec 18, 2017

I think this is covered in Service Workers cache interface so closing here. I suggest that is a more appropriate spec for filing an issue if there is something that isn't sufficient.

@chaals chaals closed this as completed Dec 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants