Changes with Apache 2.4.10
+ *) mod_expires: don't add Expires header to error responses (4xx/5xx),
+ be they generated or forwarded. PR 55669. [ Yann Ylavic ]
+
*) mod_proxy_fcgi: Don't segfault when failing to connect to the backend.
(regression in 2.4.9 release) [Jeff Trawick]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * mod_expires: don't add Expires header to error responses (4xx/5xx),
- be they generated or forwarded. PR 55669.
- trunk patch: http://svn.apache.org/r1584430
- http://svn.apache.org/r1584434
- 2.4.x patch: trunk works (modulo CHANGES)
- +1: ylavic, covener, jim
-
* mod_cache: Fix CacheLock on Windows
trunk patch: http://svn.apache.org/r1588704
2.4.x patch: trunk works
const char *expiry;
apr_table_t *t;
+ /* Don't add Expires headers to errors */
+ if (ap_is_HTTP_ERROR(f->r->status)) {
+ ap_remove_output_filter(f);
+ return ap_pass_brigade(f->next, b);
+ }
+
r = f->r;
conf = (expires_dir_config *) ap_get_module_config(r->per_dir_config,
&expires_module);