on 10/24/00 4:37 AM, J.Milks at [EMAIL PROTECTED] wrote:
> I am having an issue with my CFM templates caching like crazy, and was =
> wondering if someone could tell me how they solved it. I know there are =
> a few META tags that work with the different browsers, but don't seem to =
> be able to find the exact syntax. I am also aware of how to do it in =
> ASP, but am not sure if there is a way with CF.
You can fix all the IE caching issues by doing this:
in the application.cfm:
<cfset nocache="nc=#randrange(0,999999)#">
in the page, append the token to every URL:
<a href="page.cfm?#nocache#">Click here to see the non-cached page</a>
<a href="page.cfm?id=123&#nocache#">Click here to see the other non-cached
page</a>
This makes IE think each page is different and the pages are never cached.
Works beautifully.
--
Rob Keniger
big bang solutions
<mailto:[EMAIL PROTECTED]>
<http://www.bigbang.net.au>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]