Skip to content

Instantly share code, notes, and snippets.

@MikeRatcliffe
Last active December 22, 2015 19:49
Show Gist options
  • Save MikeRatcliffe/6522030 to your computer and use it in GitHub Desktop.
Save MikeRatcliffe/6522030 to your computer and use it in GitHub Desktop.
Disable cache
let docShell = window.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShell);
docShell.defaultLoadFlags = Ci.nsIRequest.LOAD_BYPASS_CACHE |
Ci.nsIRequest.INHIBIT_CACHING;
window.location.reload(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment