#18897 [NEW]: Erroneous 404 and others cache-unfriendly headers

From: Date: Wed, 14 Aug 2002 02:44:02 +0000
Subject: #18897 [NEW]: Erroneous 404 and others cache-unfriendly headers
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11930@lists.php.net to get a copy of this message
From: om_phpnetbug028@olden.ch Operating system: any PHP version: 4CVS-2002-08-13 PHP Bug Type: Website problem Bug description: Erroneous 404 and others cache-unfriendly headers I was wondering why my web caches dislike www.php.net (and its mirrors) so much, esp. the documentation pages. It looks like the HTTP headers of such pages are definitely cache-unfriendly: - No 'Last-Modified:'. $LAST_UPDATED could be put to good use here. - 'max-age=600' is IMHO way too agressive, esp for docs which don't change often. This directive shouldn't even be necessary if a Last-Modified was issued. - 'Vary: Cookie' even for pages which are not part of a session. - Erroneous 404. This one only appears on the printer-friendly pages: $ squidclient 'http://www.php.net/manual/en/print/' HTTP/1.0 404 Not Found Date: Wed, 14 Aug 2002 02:37:28 GMT Server: Apache/1.3.26 (Unix) PHP/4.3.0-dev X-Powered-By: PHP/4.3.0-dev Cache-Control: public, max-age=600 Vary: Cookie Content-Language: en Content-Type: text/html;charset=ISO-8859-1 X-Cache: MISS from rs1.php.net X-Cache: MISS from nestor.olden.ch X-Cache: MISS from cache.snwl.olden.ch Proxy-Connection: close <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>PHP: PHP Manual</title> </head> <body ... -- Edit bug report at http://bugs.php.net/?id=18897&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18897&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18897&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18897&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18897&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18897&r=support Expected behavior: http://bugs.php.net/fix.php?id=18897&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18897&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18897&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18897&r=globals

« previous php.mirrors (#11930) next »