Bug #2068
mod_expire adding Cache-Control header
| Status: | Fixed | Start date: | 2009-09-18 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | glen | % Done: | 100% | |
| Category: | mod_expire | |||
| Target version: | 1.4.24 | |||
| Missing in 1.5.x: | Yes |
Description
seems if mod_env combined with mod_expires to have such headers breaks:
expire.url = (
"/" => "access plus 5 weeks",
)
setenv.add-response-header += (
"Cache-Control" => "public"
)
Cache-Control: public Cache-Control: max-age=3024000
while the expected result is:
Cache-Control: public, max-age=3024000
Associated revisions
- Combine Cache-Control header value in mod_expire to existing HTTP header if header already added by other modules (fixes #2068)
- Combine Cache-Control header value in mod_expire to existing HTTP header if header already added by other modules (fixes #2068)
History
#1 Updated by glen over 3 years ago
- File expire2.patch
added - Target version set to 1.4.24
proposed patch. tested works:
Cache-Control: public, max-age=3024000
#2 Updated by glen over 3 years ago
- % Done changed from 0 to 90
#3 Updated by glen over 3 years ago
- Status changed from New to Fixed
- % Done changed from 90 to 100
Applied in changeset r2621.
#4 Updated by pioklo over 3 years ago
Hello !
Its possible to append this patch into 1.5.x ?
regards,
Piotr
#5 Updated by glen over 3 years ago
- File expire-1.5.patch
added - Missing in 1.5.x set to Yes
patch against r2704, please test and report back!
#6 Updated by pioklo over 3 years ago
if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key))) {
should be
if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key,keylen ))) {
I have have tested this patch and my few servers working fine
Regards,
Piotr Kloc
#7 Updated by glen over 3 years ago
- File expire-1.5b.patch
added
#8 Updated by demimurych about 2 years ago
File expire-1.5b.patch have error
in line
if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key, leylen))) {
should be
if (NULL != (ds = (data_string *)array_get_element(con->response.headers, key, keylen))) {
leylen => keylen
Also available in: Atom