pf » If-Modified-Since and CFML Part III
February 22, 2005
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.
Related Entries
- If-Modified-Since and CFML Part II - February 18, 2005
- Supporting If-Modified-Since HTTP header in CFML - February 18, 2005
- 8 Ways to Save Bandwidth on your RSS Feed - July 12, 2007
- Parsing RSS 1.0 with ColdFusion MX - April 8, 2004
- RSS and XPath - April 8, 2004
Trackback Address: 240/74636A7479C6FFD9B5BBAB7183DF5B0D
Comments
On 02/22/2005 at 8:56:09 PM MST Daniel wrote:
1
You should also look at using the ETAG http header and the if_not_match reponse header. Etag can be any text value you want and the if-not-match returns that text value back to you. So for a blog you could put the ID of the article and the last comment made so the next page load could use the cache unless someone had posted a new comment.
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










