cvs: pearweb /public_html package-stats-graph.php

From: Date: Sat, 24 Mar 2007 23:15:54 +0000
Subject: cvs: pearweb /public_html package-stats-graph.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-45404@lists.php.net to get a copy of this message
cellog Sat Mar 24 23:15:54 2007 UTC Modified files: /pearweb/public_html package-stats-graph.php Log: fix crap-ass weird usage of date() in headers, add ETag header for caching http://cvs.php.net/viewvc.cgi/pearweb/public_html/package-stats-graph.php?r1=1.25&r2=1.26&diff_format=u Index: pearweb/public_html/package-stats-graph.php diff -u pearweb/public_html/package-stats-graph.php:1.25 pearweb/public_html/package-stats-graph.php:1.26 --- pearweb/public_html/package-stats-graph.php:1.25 Wed Oct 18 04:15:49 2006 +++ pearweb/public_html/package-stats-graph.php Sat Mar 24 23:15:54 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Richard Heyes <richard@php.net> | +----------------------------------------------------------------------+ - $Id: package-stats-graph.php,v 1.25 2006/10/18 04:15:49 cellog Exp $ + $Id: package-stats-graph.php,v 1.26 2007/03/24 23:15:54 cellog Exp $ */ /* @@ -116,7 +116,8 @@ */ if (!DEVBOX) { // Send some caching headers to prevent unnecessary requests - header('Last-Modified: ' . date('r', md5($_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING']))); + header('Last-Modified: ' . date('c')); + header('ETag: ' . md5($_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'])); header('Expires: ' . date('r', time() + $cache_time)); header('Cache-Control: public, max-age=' . $cache_time); header('Pragma: cache');

« previous php.pear.cvs (#45404) next »