Howdy, I'd like to start using the HTML5 cache manifest technique to allow mobile users of our heroku app to forgo downloading a lot of our static content (especially JS scripts) when they return to our app. I've been having a hard time getting the cache manifest file to be sent with the proper MIME type, text/cache-manifest.
This line in my application controller doesn't seem to help: > Mime::Type.register "text/cache-manifest", :manifest The file, when I request it directly from the browser, comes back as text/plain. I think Varnish is handling the request, so the Rails application controller never sees the request. When I view the activity window in Safari, the manifest file I designate like so: > <html manifest="/manifests/mobile-<%= RAILS_ENV %>.manifest"> does not appear to be downloaded at all. I've doublechecked the spelling and location of my manifest file, public/manifests/mobile- production.manifest. Has anyone else implemented this caching strategy in a heroku app? Did you encounter, and overcome, these issues? I'd appreciate any help or pointers. Cheers, Michael -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
