You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Fei Wan <wa...@yahoo.com> on 2013/03/22 20:30:05 UTC

ATS not getting the updated file on origin server

hi

I'm a newbie to ATS and just find out the ATS is not picking up the file updates on the origin server. I think ATS can detect file changes on origin server and refresh its cache if there's change. Is that right? Can you please let me know what're the things I might not set up properly? I'm running the ATS as a reverse proxy.

We have a file on the origin server as http://10.25.66.173/test.csv and following remap rules in the ATS remap.config:
map http://www.test.com/ http://10.25.66.173/

When I use the curl to get the file through ATS 
curl http://www.test.com/test.csv

I don't see ATS returning the updated file after I've made a change. The via codes from ATS are [uScHs f p eN:t cCHi p s ] . I also checked the access log on origin server and don't see ATS getting the file from origin.


Thanks,
Fei



Re: ATS not getting the updated file on origin server

Posted by Leif Hedstrom <zw...@apache.org>.
Well, if its cached, we will serve it out of cache for as long as it is allowed to do so. What Expire or Cache-Control headers is the origin sending? Or are you using heuristics based on Last-Modified?

-- Leif 

On Mar 22, 2013, at 1:30 PM, Fei Wan <wa...@yahoo.com> wrote:

> hi
> 
> I'm a newbie to ATS and just find out the ATS is not picking up the file updates on the origin server. I think ATS can detect file changes on origin server and refresh its cache if there's change. Is that right? Can you please let me know what're the things I might not set up properly? I'm running the ATS as a reverse proxy.
> 
> We have a file on the origin server as http://10.25.66.173/test.csv and following remap rules in the ATS remap.config:
> map http://www.test.com/ http://10.25.66.173/
> 
> When I use the curl to get the file through ATS 
> curl http://www.test.com/test.csv
> 
> I don't see ATS returning the updated file after I've made a change. The via codes from ATS are [uScHs f p eN:t cCHi p s ] . I also checked the access log on origin server and don't see ATS getting the file from origin.
> 
> 
> Thanks,
> Fei
> 
>