Created
January 18, 2013 19:29
-
-
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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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