You can use cfheader, and write an HTTP header. "cache-control" is part of HTTP 1.1

I think this will keep all caches from storing the file (public/proxy caches, and 
private/browser caches):
<cfheader name="cache-control" value="no-cache,no-store">

Check your favorite HTTP reference for other possible values.
We use:
<cfheader name="cache-control" value="private"> 
to allow the browser to cache but to not allow proxies to cache.

Chris Norloff


---------- Original Message ----------------------------------
from: Sean McCarthy <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Mon, 4 Nov 2002 22:17:14 -0500 

>This seems simple but...
>When the user presses the back button I want to force them to refresh the
>page (page expired).  Not load the file from their cache.
>
>I have tried:
>
><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
><META HTTP-EQUIV="EXPIRES" CONTENT="-1">
>
>Both of these seem to deal with the server cache not the client cache.  
>Is there a way to do this without an js onload function?
>
>
>Thanks
>
>sean
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to