]> granicus.if.org Git - apache/commitdiff
fix another case of 304 response sent to an unconditional request
authorEric Covener <covener@apache.org>
Sat, 25 Oct 2014 17:45:30 +0000 (17:45 +0000)
committerEric Covener <covener@apache.org>
Sat, 25 Oct 2014 17:45:30 +0000 (17:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1634237 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/cache/mod_cache.c

diff --git a/CHANGES b/CHANGES
index 1af338b61d0c68336c5f9ee565020b8a380103b8..150dde4c07d6b20595d8d44a3fedc9970ecb776f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
-
+  *) mod_cache: Avoid a 304 response to an unconditional requst when an AH00752
+     CacheLock error occurs during cache revalidation. [Eric Covener]
+     
   *) mod_proxy: Use the correct server name for SNI in case the backend
      SSL connection itself is established via a proxy server.
      PR 57139 [Szabolcs Gyurko <szabolcs gyurko.org>]
index 6d909f03d27b25358e897f7e02f4335d2e65fac6..5f478cd876f9fd61f633887e2c3d7e61df9fa31f 100644 (file)
@@ -234,6 +234,11 @@ static int cache_quick_handler(request_rec *r, int lookup)
                     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv,
                             r, APLOGNO(00752) "Cache locked for url, not caching "
                             "response: %s", r->uri);
+                    /* cache_select() may have added conditional headers */
+                    if (cache->stale_headers) {
+                        r->headers_in = cache->stale_headers;
+                    }
+
                 }
             }
             else {