3 ms·
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
by jsingleton 11y ago
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 https://en.wikipedia.org/wiki/Cache_manifest_in_HTML5#Basics
- ryanseys 11y agoYou 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.types 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.
- jsingleton 11y agoNice. Very helpful. I must have been using the wrong (or no) extension before.