Lines 799-804
Link Here
|
799 |
ps->no_last_mod_ignore = 0; |
799 |
ps->no_last_mod_ignore = 0; |
800 |
ps->ignorecachecontrol = 0; |
800 |
ps->ignorecachecontrol = 0; |
801 |
ps->ignorecachecontrol_set = 0 ; |
801 |
ps->ignorecachecontrol_set = 0 ; |
|
|
802 |
/* store Set-Cookie headers by default to be RFC 2616 compliant */ |
803 |
ps->storecookies = 1; |
804 |
ps->storecookies_set = 0 ; |
802 |
return ps; |
805 |
return ps; |
803 |
} |
806 |
} |
804 |
|
807 |
|
Lines 835-840
Link Here
|
835 |
(overrides->ignorecachecontrol_set == 0) |
838 |
(overrides->ignorecachecontrol_set == 0) |
836 |
? base->ignorecachecontrol |
839 |
? base->ignorecachecontrol |
837 |
: overrides->ignorecachecontrol; |
840 |
: overrides->ignorecachecontrol; |
|
|
841 |
ps->storecookies = |
842 |
(overrides->storecookies_set == 0) |
843 |
? base->storecookies |
844 |
: overrides->storecookies; |
838 |
return ps; |
845 |
return ps; |
839 |
} |
846 |
} |
840 |
static const char *set_cache_ignore_no_last_mod(cmd_parms *parms, void *dummy, |
847 |
static const char *set_cache_ignore_no_last_mod(cmd_parms *parms, void *dummy, |
Lines 864-869
Link Here
|
864 |
return NULL; |
871 |
return NULL; |
865 |
} |
872 |
} |
866 |
|
873 |
|
|
|
874 |
static const char *set_cache_store_cookies(cmd_parms *parms, |
875 |
void *dummy, int flag) |
876 |
{ |
877 |
cache_server_conf *conf; |
878 |
|
879 |
conf = |
880 |
(cache_server_conf *)ap_get_module_config(parms->server->module_config, |
881 |
&cache_module); |
882 |
conf->storecookies = flag; |
883 |
conf->storecookies_set = 1; |
884 |
return NULL; |
885 |
} |
886 |
|
867 |
static const char *add_cache_enable(cmd_parms *parms, void *dummy, |
887 |
static const char *add_cache_enable(cmd_parms *parms, void *dummy, |
868 |
const char *type, |
888 |
const char *type, |
869 |
const char *url) |
889 |
const char *url) |
Lines 994-999
Link Here
|
994 |
NULL, |
1014 |
NULL, |
995 |
RSRC_CONF, |
1015 |
RSRC_CONF, |
996 |
"Ignore requests from the client for uncached content"), |
1016 |
"Ignore requests from the client for uncached content"), |
|
|
1017 |
AP_INIT_FLAG("CacheStoreCookies", set_cache_store_cookies, |
1018 |
NULL, |
1019 |
RSRC_CONF, |
1020 |
"Store Set-Cookie headers in cached headers"), |
997 |
AP_INIT_TAKE1("CacheLastModifiedFactor", set_cache_factor, NULL, RSRC_CONF, |
1021 |
AP_INIT_TAKE1("CacheLastModifiedFactor", set_cache_factor, NULL, RSRC_CONF, |
998 |
"The factor used to estimate Expires date from " |
1022 |
"The factor used to estimate Expires date from " |
999 |
"LastModified date"), |
1023 |
"LastModified date"), |