Home  >  Article  >  Web Front-end  >  HTML5 application caching

HTML5 application caching

(*-*)浩
(*-*)浩Original
2019-10-29 15:09:323007browse

Using application cache, you can easily create an offline version of a web application by creating a cache manifest file.

HTML5 application caching

What is application cache? (Recommended learning: html tutorial)

HTML5 introduces the application cache (Application Cache), which means that web applications can be cached and can be used when there is no Internet connection. for a visit.

Application caching brings three benefits to apps:

Offline browsing - users can use apps while they are offline Speed ​​- cached resources load faster Reduced Server Load - The browser will only download updated or changed resources from the server

Browser Support

The numbers in the table indicate full support for application caching browser version.

HTML5 application caching

HTML Cache Manifest Example

The following example shows an HTML document with cache manifest (for offline browsing):

Example

<!DOCTYPE HTML>
<html manifest="demo.appcache">

<body>
文档内容 ......
</body>

</html>

The above is the detailed content of HTML5 application caching. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:HTML coding standardsNext article:HTML coding standards