summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc4
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();
}