如何configurationtomcat将所有.manifest文件作为text/cache-manifest ? 我试图创build一个脱机caching,这是让我绊倒。
.manifest
text/cache-manifest
将此添加到conf / web.xml中:
<mime-mapping> <extension>manifest</extension> <mime-type>text/cache-manifest</mime-type> </mime-mapping>