我无法强制页面在 Safari 中始终过期。 Chrome、IE 和 Firefox 是好公民,但 Safari 忽略以下 ASP.NET 代码也很好:
// Expire immediately
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
有什么建议吗?
最佳答案
信不信由你,让 Safari 总是重新加载页面的方法只是将它添加到 body 标签中:
onunload=""
我在这里找到了一个提及:Is there a cross-browser onload event when clicking the back button?
关于asp.net - Safari 浏览器忽略我的无缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3384935/