diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-07-22 07:00:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-07-22 07:00:30 +0000 |
commit | 0c05ae7a030e5c944417ee715b638c9e0c456bd8 (patch) | |
tree | 4e74db8b7221b2e5d701448d710a2dd6cfb7b916 | |
parent | 479bd2fe280965404a46ef34e69119990d3c1bb6 (diff) | |
download | brdo-0c05ae7a030e5c944417ee715b638c9e0c456bd8.tar.gz brdo-0c05ae7a030e5c944417ee715b638c9e0c456bd8.tar.bz2 |
- Patch #74744 by jhenry: 304 handling should send an ETag to meet the HTTP/1.1 spec.
-rw-r--r-- | includes/bootstrap.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |