Hi there,
I have ATS configured in reverse proxy mode and am already caching almost
everything successfully. However requests from a particular origin are
stored in the cache but I always get a cache miss when I do several requests
and consequently also a new alternate for every requests. I already cache
from other origins that are the same content-type so that can not be it.
Any help would be really appreciated. Below are some infos on my setup
Here is what I get when I run via curl in with the -v switch (url and user
and authorization are anonymised)
* Server auth using Basic with user 'userxx'
> GET urlxx
> Host: 192.168.99.100
> Authorization: Basic xxxxxx
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Backside-Transport: OK OK
< X-Powered-By: Servlet/3.0
< Content-Type: application/json;charset=UTF-8
< X-Cde-Batch-Size: 1
< Date: Mon, 29 Feb 2016 12:52:42 GMT
< Cache-Control: no-cache="set-cookie, set-cookie2"
< X-Client-IP: 195.212.29.186
< Age: 2
< Transfer-Encoding: chunked
< Connection: keep-alive
< Via: https/1.1 e06f5a03fe1f (ApacheTrafficServer/5.3.1 [uScMsSfWpSeN:t
cCMi p sS])
< Server: ATS/5.3.1
Here is what my cache.config looks like:
url_regex=.* ttl-in-cache=365d cache-responses-to-cookies=1
Some parts of my records.config that could be relevant:
CONFIG proxy.config.http.cache.http INT 1
CONFIG proxy.config.http.cache.ignore_client_cc_max_age INT 1
CONFIG proxy.config.http.normalize_ae_gzip INT 1
CONFIG proxy.config.http.cache.cache_responses_to_cookies INT 1
CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 1
#
https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-when-to-revalidate
CONFIG proxy.config.http.cache.when_to_revalidate INT 4
#
https://docs.trafficserver.apache.org/records.config#proxy-config-http-cache-required-headers
CONFIG proxy.config.http.cache.required_headers INT 1
CONFIG proxy.config.http.cache.ignore_server_no_cache INT 1
--
View this message in context:
http://apache-traffic-server.24303.n7.nabble.com/Problems-with-caching-retrieving-from-cache-from-a-particular-origin-tp2193.html
Sent from the Apache Traffic Server mailing list archive at Nabble.com.