Hi,
Sorry, has any log in the trafficserver can i see the response header from the origin?
Here is the header catch by the tcpdump:
HTTP/1.1.200
ngx_openresty/1.4.3
Date:.Wed,.22.Jul.2015.13:24:32.GMT
Content-Type:.application/octet-stream; charset=UTF-8..
Content-Length:.4194304..
Connection:.keep-alive..
x-nos-request-id:.96c7b0b50aa00000014eb5efdcfe850c..
ETag:.1f28b4e1935a2112ac9f0615ea2e2775..
Content-Disposition:.inline;.filename="snap_14bbd7d3-557_1.2557"..
Last-Modified:.Tue ,.21.Jul.2015.15:14:50.Asia/Shanghai
Thanks!
2015-07-22
hzwulibin
发件人:Sudheer Vinukonda <sudheerv@yahoo-inc.com>
发送时间:2015-07-22 20:39
主题:Re: why my data didn't cached?
收件人:"users@trafficserver.apache.org"<users@trafficserver.apache.org>
抄送:
Can you check the response headers from the Origin? Also, the below setting may not be desirable.
Ideally, you would want the Origin server to indicate the cacheability.
CONFIG proxy.config.http.cache.required_headers INT 0
Thanks,
Sudheer
On Wednesday, July 22, 2015 5:25 AM, hzwulibin <hzwulibin@corp.netease.com> wrote:
Hi, everyone
Today i setup the apache traffic server as a reverse proxy server. We could get the data by
it, but it didn't cache the data.
Here is my configuration:
records.config:
CONFIG proxy.config.http.cache.http INT 1
CONFIG proxy.config.http.cache.cache_responses_to_cookies INT 1
CONFIG proxy.config.http.cache.ignore_authentication INT 1
CONFIG proxy.config.http.cache.required_headers INT 0
CONFIG proxy.config.reverse_proxy.enabled INT 1
CONFIG proxy.config.url_remap.remap_required INT 1
CONFIG proxy.config.url_remap.pristine_host_hdr INT 1
storage.config:
/cache/trafficserver 19G
And my http request will include those info:
Authorization:NOS 9592b6d22137497393e05e2624af27bf:HLtKjtstNWxUHlbsA4Ll2HCHCHGQpwai8E23dFzPuFo=
HOST:abc04
Date:Wed, 22 Jul 2015 12:21:26 GMT
I trid to get the same data from the server with the above info, i could get the data, but
the cache did not HIT.
Anyone can help me to figure out the problem?
Thanks!
Libin
2015-07-22
hzwulibin |