> What's the best way to expire a page when I'm on a shared web
> server and don't have access to IIS controls?
>  
> I tried some meta stuff but I've found conflicting sources
> when googling as to the appropriate way.  Can anyone give me
> an example?  How reliable is the meta method of expiration?  
> Anything work better?

I'd recommend that you use the CFHEADER tag to specify the appropriate HTTP
headers (assuming that you're talking about CFM pages). For example:

<cfheader name="Cache-Control" value="no-store, no-cache, must-revalidate">
<cfheader name="Cache-Control" value="post-check=0, pre-check=0">
<cfheader name="Expires" value="GMT date for now"> <!--- example: "Mon, 26
Jul 1997 05:00:00 GMT" --->
<cfheader name="Last-Modified" value="GMT date for now">
<cfheader name="Pragma" value="no-cache">

You might use META tags in addition, with the same values, just in case the
headers are stripped by some intervening proxy server.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to