AppCache misbehaving in Safari, Firefox

好久不见. 提交于 2019-12-22 05:20:19

问题


I'm having some major trouble with AppCache.

I've got a single page application (with real URLs using using Page.js and loading HTML from the server on page load, (dispatch: false)

It's running on Bode.js, in particular it's a Sails.js app.

I've got a manifest file in the HTML tag of the layout. The manifest file has been tested repeatedly and everything checks out. It works flawlessly in Chrome. Even in Safari, it shows up in the inspector correctly and has a list of the assets listed in the file. So far so good.

However, when offline, Safari fails to load anything but the HTML document itself. So I'm basically seeing just an unstyled list of headers. The console shows a bunch of 404s. So even though it's reading the manifest file correctly, it's not caching anything.

Firefox doesn't even detect the manifest file and just seems to working like it didn't exist.

Safari on iOS7 is behaving like Firefox and not showing anything, when offline.

Anyone with any bright ideas why this may be happening?

来源:https://stackoverflow.com/questions/20655771/appcache-misbehaving-in-safari-firefox

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