This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26666 - unable to clear native browser cache from javascript
Summary: unable to clear native browser cache from javascript
Status: RESOLVED MOVED
Alias: None
Product: HTML.next
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-26 03:38 UTC by Erik Yuzwa
Modified: 2017-05-28 09:12 UTC (History)
3 users (show)

See Also:


Attachments

Description Erik Yuzwa 2014-08-26 03:38:34 UTC
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.
Comment 1 LĂ©onie Watson 2017-05-28 09:12:11 UTC
Moved to the HTML repo as issue 937:
https://github.com/w3c/html/issues/937