MCPcopy Create free account
hub / github.com/apache/trafficserver / getCacheControl

Function getCacheControl

src/proxy/CacheControl.cc:157–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void
158getCacheControl(CacheControlResult *result, HttpRequestData *rdata, const OverridableHttpConfigParams *h_txn_conf, char *tag)
159{
160 rdata->tag = tag;
161 CacheControlTable->Match(rdata, result);
162
163 if (h_txn_conf->cache_ignore_client_no_cache) {
164 result->ignore_client_no_cache = true;
165 }
166
167 if (h_txn_conf->cache_ignore_server_no_cache) {
168 result->ignore_server_no_cache = true;
169 }
170
171 if (!h_txn_conf->cache_ignore_client_cc_max_age) {
172 result->ignore_client_cc_max_age = false;
173 }
174}
175
176//
177// End API functions

Calls 1

MatchMethod · 0.45

Tested by

no test coverage detected