Simon Willison’s Weblog

Subscribe

Items tagged etags, php in 2003

Filters: Year: 2003 × etags × php × Sorted by date


Supporting Conditional GET in PHP

This site’s RSS feeds now support Conditional GET. Since the feeds are dynamically generated on every request, adding support took a bit of hacking around with PHP. Here’s the function I came up with (based on the excellent description provided by Charles Miller in the article linked above):

[... 398 words]

Types

Years

Months

Tags