]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_brotli, mod_deflate: Restore the separate handling of 304 Not Modified
authorEvgeny Kotkov <kotkov@apache.org>
Tue, 9 Oct 2018 12:16:08 +0000 (12:16 +0000)
committerEvgeny Kotkov <kotkov@apache.org>
Tue, 9 Oct 2018 12:16:08 +0000 (12:16 +0000)
commitd6589774a66ad528e302dac34fe0a99e52a41508
tree1bec5bbdea95bc92079f22d56d01b3c1667a8565
parent165ee80c6a9c1088af560a17a256e1a9eb32ab9e
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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1843242 13f79535-47bb-0310-9956-ffa450edef68
modules/filters/mod_brotli.c
modules/filters/mod_deflate.c