简体   繁体   中英

HTML5 offline applications, how long can they be stored if not visited?

I was looking at Offline Web Applications using an HTML5 Cache Manifest.

Just wondering, if a user visits the application, and the resources are immediately downloaded for offline use, will they ever be deleted? (without user intervention such as Clear Browsing Data)

For example, someone visits my site, which has several somewhat sizable jpeg files that are used as wallpaper options for my webapp... but he/she may never visit my site again? How long do the offline files last when using a Cache Manifest?

It can be deleted or updated by itself, until the user does something with the manifest file.

Once an application is cached, it remains cached until one of the following happens:

  • The user clears the browser's cache
  • The manifest file is modified
  • The application cache is programmatically updated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM