HTML5 application Cache Usage Summary-

Source: Internet
Author: User
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.