This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch 8.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 70f9332b762e28c75c4b5bf4f757b7353690c39a Author: Leif Hedstrom <[email protected]> AuthorDate: Thu Dec 6 08:58:00 2018 -0700 Deals better with Cc: max-age=0 There's a small window where we can still serve cached responses even when they have a Cache-Control: max-age=0. This fixes the cache-tests checks for id=freshness-max-age-0 and id=freshness-max-age-0-expires. (cherry picked from commit 0b80592bc472d5394c777d0fca66f72779276cf2) --- proxy/http/HttpTransact.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index 62d6ffa..64bee4e 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -7273,7 +7273,7 @@ HttpTransact::what_is_document_freshness(State *s, HTTPHdr *client_request, HTTP // now, see if the age is "fresh enough" // /////////////////////////////////////////// - if (do_revalidate || current_age > age_limit) { // client-modified limit + if (do_revalidate || !age_limit || current_age > age_limit) { // client-modified limit TxnDebug("http_match", "[..._document_freshness] document needs revalidate/too old; " "returning FRESHNESS_STALE"); return (FRESHNESS_STALE);
