0

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.

Community
  • 1
  • 1
Anthony Graglia
  • 5,355
  • 5
  • 46
  • 75

1 Answers1

2

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.

robertc
  • 74,533
  • 18
  • 193
  • 177
  • Most posts I have read seem to insist that the browsers (Opera and FF) ignore the expiry date. This seems to easy a solution for a topic which has so many Q&As. I will try it myself as I have not yet. Thanks for the answer. – Anthony Graglia Jun 24 '12 at 11:22
  • 1
    @trgraglia Check out the [expiry settings in HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess#L229). – robertc Jun 24 '12 at 11:25
  • That combined with a datetime and version comment update in the manifest seems to do the trick. Thank you. – Anthony Graglia Jun 24 '12 at 11:40
  • I'm convinced there is still something else that is missing. I update the manifest every time a file in it changes, and apache emits the proper headers to prevent caching, yet intermittently Firefox refuses the load the updated file even after looking at the new manifest. – Michael Sep 04 '13 at 22:23