Skip to content

Instantly share code, notes, and snippets.

@bumpux
Created January 18, 2013 19:29
Show Gist options
  • Save bumpux/4567599 to your computer and use it in GitHub Desktop.
Save bumpux/4567599 to your computer and use it in GitHub Desktop.
Firefox displays an alert prompting users to approve whenever a site attempts to use the application cache for offline storage (cache.manifest). Other browsers accept the cache manifest without an alert. If you don't want to alarm your users, and can live without offline storage in Firefox, here's how you disable it in Firefox only. (simple enou…
$(document).ready(function() {
// disable offline caching for Firefox to avoid alarming the user
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
$("html").removeAttr("manifest");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment