Offline iOS web app: loads my manifest, but doesn't work offline

后端 未结 13 2122
温柔的废话
温柔的废话 2020-12-04 05:57

I\'m writing a web app to be used offline on iOS. I\'ve created a manifest, am serving it up as text/cache-manifest, and it usually works fine, when running in

13条回答
  •  情书的邮戳
    2020-12-04 06:40

    Sometimes an application cache group gets into a bad state in MobileSafari — it downloads every item in the cache and then fires a generic cache error event at the end. An application cache group, as per the spec, is based on the absolute URL of the manifest. I've found that when this error occurs, changing the path to the manifest (eg, cache2.manifest, etc) gives you a fresh cache group and circumvents the problem. I can vouch that all of our web apps work offline in full-screen with 4.2 and 4.3.

提交回复
热议问题