Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0c05ae7a
Commit
0c05ae7a
authored
Jul 22, 2006
by
Dries Buytaert
Browse files
- Patch
#74744
by jhenry: 304 handling should send an ETag to meet the HTTP/1.1 spec.
parent
479bd2fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
0c05ae7a
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment