1

I just made an offline iPhone webapp with the application cache. But the AJAX-calls made with the cached JS-file don't work anymore. It are just jQuery GET requests. They fail to work, but why?

I have internet connection, the webapp needs to update when there is internet, and when there is no internet it gets it's data from a cache.

+

Tried with bare bones ajax too, doesn't work... I get empty response.

Anyone know this problem, and know how to solve it?

4

2 回答 2

1

不确定您是否仍然需要这个,但这里有一个链接,其中包含有关safari 缓存的更多信息

似乎您可以指定要缓存应用程序的哪些元素,以及如何更新缓存。

于 2012-02-14T00:43:12.870 回答
0

也碰到了这个。

在包含您的站点的清单文件中包含一个 NETWORK: 部分。Ajax 调用应该在那之后工作。

于 2011-10-15T17:49:42.417 回答