Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
devinrhode2 opened this Issue · 2 comments

2 participants

@devinrhode2

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

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

@gabetax

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
Something went wrong with that request. Please try again.