HTML5 application cache updating solution

旧时模样 提交于 2019-12-11 18:01:30

问题


I may get some heat for this question because there are a lot out there already.

BUT... Every question has a different answer and no finite answer seems to be solid.

SO THE QUESTION... If I update a file which is reference in the application cache manifest for an offline available application, how can i force the update of the manifest and the offline cache without changing the manifest?

I hope this is clear. To show that I have done some research:

How to properly invalidate an HTML5 Cache Manifest for online/offline web apps?

https://stackoverflow.com/a/8211563/491044

Updating the cache This requires a change to the manifest though...

Thank you all.


回答1:


You can't. You must update the manifest file. Be careful to set an immediate expiry header on your manifest file so that the browser recognizes there's been an update to it.



来源:https://stackoverflow.com/questions/11176910/html5-application-cache-updating-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!