简体   繁体   中英

Read data from the appcache

I have a HTML5 application that works offline. As part of the solution I would like to use the appcache version as the product version. Is there anyway to read the comments (or any section) from the appcache file, in Javascript?

I managed to achieve this by doing an AJAX GET on the file. If the app is offline, the GET is handled by the browser and it serves up the cached copy.

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