Caching ColdFusion Pages With Expires Header Value

<!--- Let's have this page persist on the client for a day. --->
<cfset dtExpires = (Now() + 1) />
 
<!---
	Get the HTTP GMT time string for the given expiration
	date (this is the date/time format expected by the Expires
	header value.
--->
<cfset strExpires = GetHTTPTimeString( dtExpires ) />
 
<!--- Set the expires header. --->
<cfheader
	name="expires"
	value="#strExpires#"
	/>
 
 
<!--- Define the type of content we are sending. --->
<cfcontent type="text/css" />
 
<!--- CSS Content ----------------------------------------- --->
 
<cfoutput>
 
	p##target:after {
		content: "#TimeFormat( Now(), "hh:mm:ss" )#"
		}
 
</cfoutput>

For Cut-and-Paste