Jason
Jason

Reputation: 1858

How to add mime type "cache-manifest" to Jekyll?

The Jekyll site is hosted in GitHub and I want to add AddType text/cache-manifest .appcache to .htaccess. I searched and couldn't find anything. Help would be greatly appreciated.

Upvotes: 0

Views: 277

Answers (2)

StephenD
StephenD

Reputation: 4122

You can't change the default mime types, but github pages have a VERY long list of mappings. Including the one you want.

See https://github.com/jekyll/jekyll/blob/10a73596d94c3138eba1a330b52864efecf08a05/lib/jekyll/mime.types#L822 and
https://github.com/jshttp/mime-db/blob/66588fec459c0d61cec5c69cfd161b139f75cf7d/db.json#L6232

Upvotes: 2

Virtua Creative
Virtua Creative

Reputation: 2113

There's no way to add an .htaccess to GH Pages, as stated here:

For the security of our users, GitHub Pages does not support customer server configuration files such as .htaccess or .conf.

You will need a workaround.

Upvotes: 0

Related Questions