HTML5 - cache manifest working great on Chrome but not on Firefox and Opera

后端 未结 13 1295
挽巷
挽巷 2020-12-15 17:55

I am developing a web app for offline use, thus I need to use the application cache functionality.

Everything works great on Chrome (15.0.874.106) but is doesn\'t wo

13条回答
  •  無奈伤痛
    2020-12-15 18:31

    From my experience with getting a site working offline on the iPad:

    • The name of the file needs to end with .manifest
    • The mime type needs to be text/cache-manifest
    • Have a version in the comments of your manifest
    • Create some javascript functions using window.applicationCache... to check if the browser sees a change in the manifest and to reload the content, also capture the status events and display them somewhere

    See also: http://developer.apple.com/library/safari/#documentation/iPhone/Conceptual/SafariJSDatabaseGuide/OfflineApplicationCache/OfflineApplicationCache.html#//apple_ref/doc/uid/TP40007256-CH7-SW1

提交回复
热议问题