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