This article describes in detail the HTML5 local cache. You can easily create an offline version of a web application by adding a file suffixed with. appcache to the HTML tag on the html page .,.
Recently, I was exposed to the HTML5 local cache and added the. appcache file to the HTML tag on the html page. This allows you to easily create offline web applications.
Benefits of using local cache:
-
Offline browsing-users can use them when the application is offline
-
Speed-cached resources are loaded faster
-
Server Load Reduction-the browser will only download updated or changed resources from the server.
Browser support:
All mainstream browsers support application caching, except for IE
HTML5 Cache Manifest instance
The following example shows the HTML document with cache manifest (for offline browsing ):
HTML page
With the. appcache file, does the HTML timestamp file lose its original meaning?
Maybe when I see Marx in earlier IE versions and all browsers support HTML5 application caching, the HTML timestamp file may retire. At least currently, it is still inseparable from the time stamp file of ordinary updates. The. appcache file is used to update the browser cache. Currently, it is mainly used on mobile terminals.
The above is the summary of the Cache Usage of the HTML 5 application. For more information, see the PHP Chinese website (www.php1.cn )!