Pardeep,

Yes, it's quite simple with CFML.

Set the header to expire automatically before the page loads using the
CFHEADER tag.
<cfheader name="Expires" value="#now()#">
<cfheader name="Pragma" value="no-cache">

This will make the browser load fresh content and tell it not to cache it.

Also if you want you can add this META tag to your HTML:
<META HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">

HTH,

Joseph DeVore
VeloxWeb Technologies




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 5:40 PM
To: CF-Talk
Subject: How do u prevent pages from caching or how do u auto-refresh
pages?


Does anyone know how to prevent pages from caching in a browser?

Or how to refresh pages in a manner that works in all the browsers? By
refresh I don't mean you massage the page visualizing a Swedish model, but
rather the page is reloaded along with any new versions of graphic files
that have the same file name.

Ideally a CF solution would be better, since some folks may not have
javascript, but I'm open to anything that works.

Thanks,
Pardeep.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to