Caching ColdFusion Pages With Expires Header Value

<cfoutput>
 
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html>
	<head>
		<title>Setting Expires Header in ColdFusion</title>
 
		<!---
			When linking "static" ColdFusion assets, add the
			application version key to the URL so that the
			browser sees it as a new file every time the app
			is re-initialized.
		--->
		<link
			rel="stylesheet"
			type="text/css"
			href="./styles.cfm?v=#APPLICATION.VersionKey#">
		</link>
	</head>
	<body>
 
		<h1>
			Setting Expires Header in ColdFusion
		</h1>
 
		<p id="target">
			The LINK tag should only pull down the linked CSS file
			if it has expired, does not exist locally, or we are
			hard refresshing the apge.
		</p>
 
		<p>
			<a href="./index.cfm">Soft refresh</a>
		</p>
 
	</body>
	</html>
 
</cfoutput>

For Cut-and-Paste