Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently there are values 0 to 3 at http://trafficserver.readthedocs.org/en/latest/admin-guide/files/records.config.en.html#proxy-config-http-cache-cache-responses-to-cookies
0 = do not cache any responses to cookies
1 = cache for any content-type
2 = cache only for image types
3 = cache for all but text content-types
However there are 0 to 4 values in the source code
https://github.com/apache/trafficserver/blob/d197d75601772139ea489dc5686fd041dc3c257a/mgmt/RecordsConfig.cc#L643-L650
// # cache responses to cookies has 4 options
// #
// # 0 - do not cache any responses to cookies
// # 1 - cache for any content-type (ignore cookies)
// # 2 - cache only for image types
// # 3 - cache for all but text content-types
// # 4 - cache for all but text content-types except OS response without "Set-Cookie" or with "Cache-Control: public"Unknown macro: {RECT_CONFIG, "proxy.config.http.cache.cache_responses_to_cookies", RECD_INT, "1", RECU_DYNAMIC, RR_NULL, RECC_INT, "[0-4]", RECA_NULL}
So we should add the docs about the value 4
4 = cache for all but text content-types except OS response without "Set-Cookie" or with "Cache-Control: public