]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_cache: Don't add cached/revalidated entity headers to a 304 response.
authorYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 14:14:53 +0000 (14:14 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 14:14:53 +0000 (14:14 +0000)
commitf3ec657e4f1cf02c3c1c593c5f6ecddfd4794493
tree17de0c939a26a7706c5196d5c479e7dc82f00fe5
parentc9c010f5fb2cea47d508464faa68c5b75daca36f
mod_cache: Don't add cached/revalidated entity headers to a 304 response.
           PR 55547.

When the conditional request meets the conditions of the stale then revalidated
entry, the forwarded 304 response includes the entity headers merged from the
cached headers (before updating the entry).
Strip them before returning a 304.

Since the entity headers are stripped elsewhere, factorize the code using a
new table (MOD_CACHE_ENTITY_HEADERS[]) containing these headers's names.

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