[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