I think the problem may be that in this case is that there is nothing
in the headers that tells ATS it is allowed to cache the object.  By
default, this information is in the header Cache-control -- something
like public, max-age=$seconds

You could add this using the header_rewrite plugin.
https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/header_rewrite.en.html
I'm most familiar with it running as a remap plugin -- if you have a
remap rule for this domain, you'd add a file that contained something
like
cond %{READ_RESPONSE_HDR_HOOK} [AND]
cond %{HEADER:Cache-Control}
    set-header Cache-Control "max-age=600, public" [L]

miles

On Sat, Jan 30, 2016 at 6:19 AM, Muhammad Faisal <[email protected]> wrote:
> Required Heads:
> GET
> /project/filezilla/FileZilla_Client/3.11.0.2/FileZilla_3.11.0.2_win64-setup.exe
> HTTP/1.1
> Host: netix.dl.sourceforge.net
> Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> Accept-Encoding: gzip, deflate, sdch
> Accept-Language: en-US,en;q=0.8
> Upgrade-Insecure-Requests: 1
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML,
> like Gecko) Chrome/47.0.2526.111 Safari/537.36
>
> HTTP/1.1 200 OK
> Accept-Ranges: bytes
> Content-Length: 6477032
> Content-Type: application/octet-stream
> Date: Sat, 30 Jan 2016 14:15:45 GMT
> ETag: "62d4e8-5178afaba6ac0"
> Last-Modified: Tue, 02 Jun 2015 15:56:03 GMT
> Server: Apache/2.4.6 (CentOS)
>
> I dont see any cache control header in the URL
>
>
>
> On 1/30/2016 6:40 AM, Reindl Harald wrote:
>>
>>
>>
>> Am 29.01.2016 um 20:46 schrieb Muhammad Faisal:
>>>
>>> sorry for being dumb but how to check the header from origin?
>>>
>>> On 1/30/2016 12:41 AM, Miles Libbey wrote:
>>>>
>>>> No -- from the origin. My real question is, are you sure that url is
>>>> set to be cacheable?
>>
>>
>> curl --head <url>
>>
>

Reply via email to