For assets stored in the "public" folder of the ruby-on-rails application, can I change the "Content-Type" when running "script / server"? For example, I'm trying to create an HTML5 application that supports offline mode and have "offline.manifest". When I run:
curl -I localhost:3000/offline.mainfest
The following header information is returned:
HTTP/1.1 200 OK ... Content-Type: text/plain ...
However, HTML5 specifications require:
HTTP/1.1 200 OK ... Content-Type: text/cache-manifest ...
source share