Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
devinrhode2 opened this issue Dec 27, 2012 · 2 comments

Comments

@devinrhode2
Copy link

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.

@devinrhode2
Copy link
Author

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

@gabetax
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants