Creating RTF file in Coldfusion -- IE shows cached version
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.
精彩评论