]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1843242 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 10 Oct 2018 15:40:35 +0000 (15:40 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 10 Oct 2018 15:40:35 +0000 (15:40 +0000)
commit1a6f522c01092c0786a2b827c3ece9192b366d05
treea507f6b8ba642e875316779311887f332b748b28
parent8c1fca2e9e7e36f3db7bf4c2201c50d5f019e031
Merge r1843242 from trunk:

mod_brotli, mod_deflate: Restore the separate handling of 304 Not Modified
responses allowing these modules to properly set or fix-up the response
headers such as Vary or ETag.

This change follows up on r1837056 that disabled that special handling and
thus resulted in a potential violation of RFC7232, 4.1:

   The server generating a 304 response MUST generate any of the following
   header fields that would have been sent in a 200 (OK) response to the
   same request: Cache-Control, Content-Location, Date, ETag, Expires,
   and Vary.)

References:
  https://lists.apache.org/thread.html/f5733ca6743757e8aa8b58a0cd9e27680971551c2a20f5606c66507e@%3Cdev.httpd.apache.org%3E
  https://tools.ietf.org/html/rfc7232#section-4.1
Submitted by: kotkov
Reviewed by: kotkov, ylavic, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1843469 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
modules/filters/mod_brotli.c
modules/filters/mod_deflate.c