A Beginner's Guide to Using the Application Cache
A Beginner's Guide to Using the Application Cache
http://www.html5rocks.com/en/tutorials/appcache/beginner/?redirect_from_locale=eg
A manifest file needs to be served with the correct
MIME-type, which is "text/cache-manifest". Must be configured on the
web server.
In glassfish3\glassfish\domains\domain1\config\ default-web.xml
<mime-mapping>
<extension>manifest</extension>
<mime-type>text/cache-manifest</mime-type>
</mime-mapping>
<mime-mapping>
<extension>manifest</extension>
<mime-type>text/cache-manifest</mime-type>
</mime-mapping>
评论
发表评论