如何将 mime 类型 "cache-manifest" 添加到 Jekyll?

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

Jekyll 站点托管在 GitHub 中,我想将 AddType text/cache-manifest .appcache 添加到 .htaccess。我搜索但找不到任何东西。将不胜感激。

无法将 .htaccess 添加到 GH 页面,如 here 所述:

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

您需要一个解决方法。

您不能更改默认的 MIME 类型,但是 github 页面有很长的映射列表。包括你想要的那个。

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