8335b1
Index: modules/cache/cache_util.c
8335b1
===================================================================
8335b1
--- a/modules/cache/cache_util.c	(revision 1705527)
8335b1
+++ b/modules/cache/cache_util.c	(revision 1705528)
8335b1
@@ -1254,7 +1254,6 @@
8335b1
     headers_out = apr_table_overlay(r->pool, r->headers_out,
8335b1
                                         r->err_headers_out);
8335b1
 
8335b1
-    apr_table_clear(r->err_headers_out);
8335b1
8335b1
     headers_out = ap_cache_cacheable_headers(r->pool, headers_out,
8335b1
                                                   r->server);
8335b1
Index: modules/cache/mod_cache.c
8335b1
===================================================================
8335b1
--- a/modules/cache/mod_cache.c	(revision 1705527)
8335b1
+++ b/modules/cache/mod_cache.c	(revision 1705528)
8335b1
@@ -1452,6 +1452,7 @@
8335b1
          * headers that might have snuck in.
8335b1
          */
8335b1
         r->headers_out = ap_cache_cacheable_headers_out(r);
8335b1
+        apr_table_clear(r->err_headers_out);
8335b1
 
8335b1
         /* Merge in our cached headers.  However, keep any updated values. */
8335b1
         /* take output, overlay on top of cached */