开发者

Do not fetch app.manifest each time

开发者 https://www.devze.com 2022-12-25 17:57 出处:网络
For creating an offline version of a bunch of link开发者_开发百科ed web pages I use an app.manifest-file that lists all the web pages for offline caching.

For creating an offline version of a bunch of link开发者_开发百科ed web pages I use an app.manifest-file that lists all the web pages for offline caching.

I would like it that the app.manifest file is not fetched every time when a user jumps from one web page to another. Most of the web pages will never be updated once the application is on the iPhone. Also the target audience is abroad so roaming costs could add up while users are using my "web app".

Searching the internet made me think in the direction of forcing an offline mode in Mobile Safari using Javascript but I don't know if this is the right way to go or if it is even possible.

Does anyone have any other and/or better ideas and suggestions on how to do this?


I would try setting an expires header to the future for the manifest file. That should theoretically prevent the browser from making a request for it. Never tried it, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号