Commit 0c05ae7a authored by Dries's avatar Dries

- Patch #74744 by jhenry: 304 handling should send an ETag to meet the HTTP/1.1 spec.

parent 479bd2fe
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment