Hacker News new | past | comments | ask | show | jobs | submit login

Something I would really like is to be able to set the custom MIME type for an app cache manifest file. That way you could easily host offline web apps from GH pages. Anyone know a way to do this without using S3 or similar?

https://en.wikipedia.org/wiki/Cache_manifest_in_HTML5#Basics




You shouldn't need to specify a custom one. GitHub Pages will automatically serve the file with the appropriate mime type given its file extension. Here [1] is the list.

[1]: https://github.com/jekyll/jekyll/blob/master/lib/jekyll/mime...

Edit: As you can see in that link, both .manifest and .appcache file extensions map to text/cache-manifest mime type.


Nice. Very helpful. I must have been using the wrong (or no) extension before.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: