阻止 IE 存储/缓存 URL 快捷方式
似乎在本地桌面计算机上用户配置文件下的“临时 Internet 文件”中创建(缓存)了带有调用 URL 目标的快捷方式。
如何阻止 IE 这样做呢?如果它可以由托管页面本身(可能是 HTML 中的某些标签)以某种方式控制,而不是用户必须配置其 IE 设置,那就太好了。
It seems that a shortcut with the destination of the invoking URL is created (cached) in 'Temporary Internet Files' under the user's profile on the local desktop machine.
How can one prevent IE from doing so? It would be even great if it can be somehow controlled by the hosted page itself (may be some tags in the HTML), rather than users having to configure their IE setup.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过将此 HTML 放入
标记中来阻止它缓存:
请记住,这并不总是会阻止它缓存,但通常会阻止它缓存。
如果需要,您也可以使用 PHP,方法是将其放在 PHP 页面(如果是 PHP)的最顶部,位于
开始标记之前:
仅供参考:缓存 = 临时 Internet 文件(如果您不知道)
希望这会有所帮助。
编辑:
那么您正在使用 JSP 吗?请参阅此页面:http://www.rgagnon.com/javadetails/java-0590。 html 我希望这能解决您的问题。 :)
You could prevent it from caching by putting this HTML in your
<head>
tags:Keep in mind that this wont always prevent it from caching but usually does.
You could also use PHP if you wanted, by putting this at the very top of your PHP page (if it's PHP) before the opening
<html>
tag:FYI: Cache = Temporary Internet Files (if you didn't know)
Hope this helps.
Edit:
So you are using JSP? Please see this page: http://www.rgagnon.com/javadetails/java-0590.html I hope this solves your problem. :)