Skip to content

Commit

Permalink
- update urls
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 7, 2010
1 parent efdfac8 commit 23a96c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/httputils.php
Expand Up @@ -14,13 +14,13 @@
* Checks and sets HTTP headers for conditional HTTP requests
*
* @author Simon Willison <swillison@gmail.com>
* @link http://simon.incutio.com/archive/2003/04/23/conditionalGet
* @link http://simonwillison.net/2003/Apr/23/conditionalGet/
* @param timestamp $timestamp lastmodified time of the cache file
* @returns void or exits with previously header() commands executed
*/
function http_conditionalRequest($timestamp){
// A PHP implementation of conditional get, see
// http://fishbowl.pastiche.org/archives/001132.html
// http://fishbowl.pastiche.org/2002/10/21/http_conditional_get_for_rss_hackers/
$last_modified = substr(gmdate('r', $timestamp), 0, -5).'GMT';
$etag = '"'.md5($last_modified).'"';
// Send the headers
Expand Down

0 comments on commit 23a96c4

Please sign in to comment.