在 Coldfusion 中创建 RTF 文件 - IE 显示缓存版本

发布于 2024-10-07 01:54:58 字数 131 浏览 0 评论 0原文

我正在 Coldfusion 中创建一个 RTF 文件并将其写入服务器。写入后,我用它来显示该文件。 IE 第一次会正确加载文件,但当文件更新时,它会加载缓存版本而不是新版本。

文件在服务器上正确更新,但我无法让 IE 查看新版本。

I'm creating an RTF file in Coldfusion and writing it to the server. Once written, I use to display the file. IE will load the file correctly the first time, but it loads the cached version instead of the new when the file is updated.

The file is updating on the server correctly, but I can't get IE to look at the new version.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情何以堪。 2024-10-14 01:54:58

一个简单的解决方案是在更新时使用版本号更新链接。因此,第一次写入文件时,您指向 file.rtf?1。更新文件时,将链接更新为 file.rtf?2

如果您不跟踪版本号,则可以类似地使用随机整数。

不,这并不优雅。然而,它确实有效。

A simple solution would be to update the link with a version number on update. So, the first time you write the file, you point to file.rtf?1. When you update the file, update the link to file.rtf?2

If you aren't keeping track of version numbers, you could use a random integer similarly.

No, it's not elegant. It does, however, work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文