Skip to content
Snippets Groups Projects
Commit 0c05ae7a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 479bd2fe
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment