]> granicus.if.org Git - apache/commit
mod_cache: Don't add cached/revalidated entity headers to a 304 response.
authorYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 14:43:27 +0000 (14:43 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 14:43:27 +0000 (14:43 +0000)
commit75e24df9a8d0fc0286f5d95ee7065a4ac80a321d
treea4d88b57b6bbf9ce7c70b70b6a89564ea7d8d8fd
parent241c1c3d0e79bef601b0d6484bc7ab9c6432bd47
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@1591320 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/cache/mod_cache.c