开发者

Creating RTF file in Coldfusion -- IE shows cached version

开发者 https://www.devze.com 2023-01-30 08:17 出处:网络
I\'m creating an RTF file in Coldfusion and writing it to the server.Once written, I useto display the file.IE will load the file correctly the first time, but it loads the cached version instead of t

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 s开发者_JAVA百科erver correctly, but I can't get IE to look at the new version.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号