Lines 1008-1019
static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
Link Here
|
1008 |
&& r->status != HTTP_PARTIAL_CONTENT |
1008 |
&& r->status != HTTP_PARTIAL_CONTENT |
1009 |
&& r->status != HTTP_MULTIPLE_CHOICES |
1009 |
&& r->status != HTTP_MULTIPLE_CHOICES |
1010 |
&& r->status != HTTP_MOVED_PERMANENTLY |
1010 |
&& r->status != HTTP_MOVED_PERMANENTLY |
1011 |
&& r->status != HTTP_NOT_MODIFIED) { |
1011 |
&& r->status != HTTP_NOT_MODIFIED |
1012 |
/* RFC2616 13.4 we are allowed to cache 200, 203, 206, 300, 301 or 410 |
1012 |
&& r->status != HTTP_PERMANENT_REDIRECT |
|
|
1013 |
&& r->status != HTTP_GONE) { |
1014 |
/* RFC2616 13.4 we are allowed to cache 200, 203, 206, 300, 301, or 410 |
1013 |
* We allow the caching of 206, but a cache implementation might choose |
1015 |
* We allow the caching of 206, but a cache implementation might choose |
1014 |
* to decline to cache a 206 if it doesn't know how to. |
1016 |
* to decline to cache a 206 if it doesn't know how to. |
1015 |
* We include 304 Not Modified here too as this is the origin server |
1017 |
* We include 304 Not Modified here too as this is the origin server |
1016 |
* telling us to serve the cached copy. |
1018 |
* telling us to serve the cached copy. |
|
|
1019 |
* RFC7538 3 allows us to cache 308. |
1017 |
*/ |
1020 |
*/ |
1018 |
if (exps != NULL || cc_out != NULL) { |
1021 |
if (exps != NULL || cc_out != NULL) { |
1019 |
/* We are also allowed to cache any response given that it has a |
1022 |
/* We are also allowed to cache any response given that it has a |
1020 |
- |
|
|