问题
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