Html5 offline storage

Source: Internet
Author: User

I. offline storage

It is equivalent to synchronizing data on the server (downloading to a local device ),

In this way, when you are offline, resources are automatically opened from the local device.

Offline storage: It is equivalent to synchronizing data on the server (downloading to a local device). If you access this page but close the service, you will not be able to access it after refresh, offline storage can be accessed when the service is disabled

Offline storage:

1. Through apache configuration:

(1) D: \ lamp \ apache \ conf/httpd. conf Add: AddType text/cache-manifest. manifest

(2) create a manifest file (such as php. manifest) to describe what needs to be cached. Create a new cache. manifest file in the current project. The content is as follows:


(3) associate the manifest file with the html file. The cache. manifest file must be loaded into the file to be stored offline.

 

 

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.