In development, manifest.appcache can just 404 to completely turn it off. #22

devinrhode2 opened this Issue Dec 27, 2012 · 2 comments


None yet
2 participants

HTML5 offline gets annoying, and why not just completely turn it off when in development? There should be an option to turn it on, for basic testing, but otherwise it just gets in the way.

This can easily be done by returning a 404 on the request for the appcache.

Note: this is also how you can make an html5 offline app no longer an offline app, and instead like a regular website.

Wish I could work on a PR for this, but I know nothing about rack, ruby, and/or rails. Maybe in 6 months

gabetax commented Feb 12, 2014

If you want it disabled temporarily in development, I would just comment out the line in your routes.rb. If you want it permanently disabled in development, but still active in production, wrap it in if Rails.env.production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment