You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by ling-zhou <gi...@git.apache.org> on 2017/01/17 04:17:55 UTC

[GitHub] trafficserver issue #1329: action=never-cache did NOT take effect in cache.c...

GitHub user ling-zhou opened an issue:

    https://github.com/apache/trafficserver/issues/1329

    action=never-cache did NOT take effect in cache.config

    testing URL:
        curl -v http://test.com:65432/data/1.php
    
    first try:
        ################### cache.config #####################
        dest_domain=test.com suffix=php  action=never-cache cache-responses-to-cookies=0  #1
        dest_domain=test.com suffix=jsp  action=never-cache cache-responses-to-cookies=0  #2
        dest_domain=test.com suffix=asp  action=never-cache cache-responses-to-cookies=0  #3
        dest_domain=test.com suffix=aspx action=never-cache cache-responses-to-cookies=0  #4
        dest_domain=test.com suffix=ts   ttl-in-cache=3s    cache-responses-to-cookies=1  #5
        dest_domain=test.com suffix=m3u8 ttl-in-cache=2s    cache-responses-to-cookies=1  #6
        dest_domain=test.com             ttl-in-cache=4s    cache-responses-to-cookies=0  #7
        ################### traffic.out #####################
        [Jan 17 11:45:44.038] Server {0x2b309a30d700} DEBUG: <CacheControl.cc:466 (UpdateMatch)> (cache_control) Matched with for NEVER_CACHE at line 1 [cache-responses-to-cookies=0]
        [Jan 17 11:45:44.038] Server {0x2b309a30d700} DEBUG: <CacheControl.cc:466 (UpdateMatch)> (cache_control) Matched with for TTL_IN_CACHE at line 7 [cache-responses-to-cookies=0]
        ##################### problem #######################
        I expected rule #1, but rule #7 took effect.
    
    second try:
        ################### cache.config #####################
        dest_domain=test.com             ttl-in-cache=4s    cache-responses-to-cookies=0  #1 
        dest_domain=test.com suffix=php  action=never-cache cache-responses-to-cookies=0  #2 
        dest_domain=test.com suffix=jsp  action=never-cache cache-responses-to-cookies=0  #3 
        dest_domain=test.com suffix=asp  action=never-cache cache-responses-to-cookies=0  #4 
        dest_domain=test.com suffix=aspx action=never-cache cache-responses-to-cookies=0  #5 
        dest_domain=test.com suffix=ts   ttl-in-cache=3s    cache-responses-to-cookies=1  #6 
        dest_domain=test.com suffix=m3u8 ttl-in-cache=2s    cache-responses-to-cookies=1  #7 
        ################### traffic.out #####################
        [Jan 17 12:01:44.553] Server {0x2b521db00700} DEBUG: <CacheControl.cc:466 (UpdateMatch)> (cache_control) Matched with for TTL_IN_CACHE at line 1 [cache-responses-to-cookies=0]
        ##################### problem #######################
        I expected rule #2, but rule #1 took effect.

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---