You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2015/05/05 18:34:00 UTC

[jira] [Commented] (TS-3583) cache.config action=never-cache

    [ https://issues.apache.org/jira/browse/TS-3583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528760#comment-14528760 ] 

Leif Hedstrom commented on TS-3583:
-----------------------------------

Is that the only rule in your cache.config? With the exact config above, I could not reproduce this. However, if I did (per amc's suggestions) e.g.

{code}
url_regex=.*leagueof.* action=never-cache
url_regex=.*league.* ttl-in-cache=1234
{code}


Then both rules matches, and the ttl-in-cache= takes precedence. You can debug this by enabling tracers on "cache" (e.g. -T cache). You'd see

{code}
[May  5 10:33:01.227] Server {0x7f4cabe04700} DEBUG: (cache_control) Matched with for NEVER_CACHE at line 55
[May  5 10:33:01.227] Server {0x7f4cabe04700} DEBUG: (cache_control) Matched with for TTL_IN_CACHE at line 56
{code}

> cache.config action=never-cache
> -------------------------------
>
>                 Key: TS-3583
>                 URL: https://issues.apache.org/jira/browse/TS-3583
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: Faysal Banna
>
> Hello Guys 
> in cache.config i have 
> url_regex=.*leagueof.* action=never-cache 
> as the first rule in cache.config
> and i purged all files or url's for that contains http://.*leagueof.* 
> now in the squid.log i get 
> 1430817070.971 238 127.0.0.1 TCP_MISS/200 89507 GET http://news.cdn.leagueoflegends.com/public/oembed/0.0.173/img/patchnotes/full/background.jpg - DIRECT/news.cdn.leagueoflegends.com image/jpeg 
>  1430817078.211 0 127.0.0.1 TCP_HIT/200 89576 GET http://news.cdn.leagueoflegends.com/public/oembed/0.0.173/img/patchnotes/full/background.jpg - NONE/- image/jpeg
> how can this be ? 
> trafficserver 5.2.0 
> Much Regards 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)