If-Modified-Since and CFML Part III
Roger Benningfield pointed out to me that most clients use a value from a
Last-Modified header as the value sent in the
If-Modified-Since. So you will want to ensure that you are setting that header as well, if your planning on checking for
If-Modified-Since. To add it simply use the cfheader tag:
<cfheader name="Last-Modified" value="#lastModifiedDate#">
Again make sure the date uses the correct format, use the GetHttpTimeString() function.
Roger also has a post on supporting conditional GETs with CF. I will post some info on ETags soon.
Like this? Follow me ↯Tweet Follow @pfreitag
If-Modified-Since and CFML Part III was first published on February 22, 2005.
If you like reading about cfml, if-modified-since, or rss then you might also like:
- If-Modified-Since and CFML Part II
- Supporting If-Modified-Since HTTP header in CFML
- 8 Ways to Save Bandwidth on your RSS Feed
- Parsing RSS 1.0 with ColdFusion MX
- RSS and XPath
- Parsing RSS with CFMX
The FuseGuard Web Application Firewall for ColdFusion & CFML is a high performance, customizable engine that blocks various attacks against your ColdFusion applications.