不一致的页面在 Internet Explorer 中显示过期消息
我有一个用 Python-Zope 开发的应用程序,仅在某些页面上,我收到“页面已过期问题”,并且并非每次都会出现这种情况。当我单击“后退”或“取消”按钮(使用浏览器历史记录重定向到较早的页面)时,就会出现此问题。我已经检查了我的代码,没有代码设置响应标头来防止页面缓存。
此外,问题仅适用于 Internet Explorer,代码在 Mozilla 上运行良好。
有什么办法可以阻止此消息吗?
提前致谢。
I have an application developed in Python-Zope where only on some of the pages, I am getting "page has expired issue" and this does not come every time. This issue comes when I click on "Back" or "Cancel" buttons which use browser history to redirect to the earlier pages. I have reviewed my code and there is not code setting response headers to prevent page caching.
Also the issue is with internet explorer only and code works fine with mozilla.
Is there a way I can prevent this message?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的页面是否通过 HTTPS 提供服务?
如果是这样,这就是预期的行为。默认情况下,IE 不会在磁盘上缓存受保护的页面,也不会自动重新提交带有 POST 数据的页面。
这是安全功能(防止缓存嗅探等),并且是 IE 唯一正确执行的操作。
Is your page served on HTTPS?
If so this is the expected behavior. By default IE will not cache a secured page on disk, nor will it automatically resubmit pages with POST data.
This is security feature (prevent cache sniffing, etc) and is about the only thing IE does correctly.