我有一个页面,它通过AJAX请求获取数据,然后由用户修改。在使用iPad时,如果用户进行更改,然后离开该页面,然后再返回 - AJAX请求不会重新运行 - 这意味着加载旧数据(可能是从iPad的浏览器缓存中加载)。
我的服务器代码是ASP.NET表单,并且我已尝试使用所有可以找到的设置来设置无缓存:
Context.Response.Cache.SetNoStore()
Context.Response.Cache.SetETag(New Guid().ToString())
Context.Response.Cache.SetExpires(New DateTime())
Context.Response.Cache.SetNoServerCaching()
Context.Response.Cache.SetCacheability(HttpCacheability.NoCache)
Context.Response.Expires = 0
但是没有运气。有任何想法吗?