[Reading Notes] iOS-Offline available Web applications, ios-offline

Source: Internet
Author: User

[Reading Notes] iOS-Offline available Web applications, ios-offline

As we all know, web pages not only need to be accessed through the Internet to provide various forms of services, but also the various design elements of the web pages need to be accessed through the Internet.

However, with the help of HTML5's offline features, we can solve this problem by storing various types of resources in the cache of Web applications. The file to be cached is declared in a file called Mainfest. Once the file is cached, Safari will first search for the mainfest file before starting any server-side flow to avoid downloading the previously downloaded and stored files again.

The application cache can be permanently saved between browser sessions. This means that cached resources can still be viewed and operated normally without any network environment or after the flight mode is enabled on the mobile phone.

 

Safari will only judge whether to update the content of the mainfest file based on whether the content is changed or not. Different from the HTTP condition GET request, the object date or any other attribute does not affect the judgment. To force update, you can use JavaScript.

 

 

Reference: iOS Web Application Development

Related Article

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.