This post originated from an RSS feed registered with PHP Buzz
by Douglas Clifton.
Original Post: PHP Cache Control
Feed Title: drx: PHP
Feed URL: http://www.loadaveragezero.com/drx/rss/Programming/Languages/PHP/
Feed Description: My site was designed and coded from the ground up in 100% MySQL and PHP. Okay, and a few other tools. I take great pride in adding high quality PHP resources to this category. Like this one.
Fred describes a simple scheme for caching dynamic PHP documents. Works only for documents based on the script's modified timestamp, you will need another approach if the content is extracted from a DB for example. I recommend adding an Etag header.