From 0c05ae7a030e5c944417ee715b638c9e0c456bd8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 22 Jul 2006 07:00:30 +0000 Subject: - Patch #74744 by jhenry: 304 handling should send an ETag to meet the HTTP/1.1 spec. --- includes/bootstrap.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 1c68b1398..826818a55 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -400,7 +400,9 @@ function drupal_page_header() { // The type checking here is very important, be careful when changing entries. if (($modified_since !== NULL || $none_match !== NULL) && $modified_since !== FALSE && $none_match !== FALSE) { - header('HTTP/1.0 304 Not Modified'); + header('HTTP/1.1 304 Not Modified'); + // All 304 responses must send an etag if the 200 response for the same object contained an etag + header('Etag: $etag'); exit(); } -- cgit v1.2.3