1 blog reaction to simonwillison.net/2003/Apr/23/conditionalGet/

Subscribe
  • Author unknown

    W3C Questions & Answers blog

    302 days ago · Authority: 230

    /IfModule> php scripts are often used to draw content for a database. If the database has a field with the timestamp of the last relevant change, this can be forwarded to the user-agents. For example, Simon Willison's method: <?php $last_modified = substr(date('r', $timestamp), 0, -5).'GMT'; $etag = '"'.md5($last_modified).'"'; // Send the headers header("Last-Modified: $last_modified"); header("ETag: $etag"); ?> or, if you just want browsers to keep content in

    Blog reactions settings