Ho to handle this situation to ensure object is delivered from cache when different URL corresponds to same object? Due to this behavior of many sites the cache hit ratio is very low 3 to 4% only.
--
Regards,
Faisal.


------ Original Message ------
From: "Muhammad Faisal" <[email protected]>
To: [email protected]; [email protected]
Sent: 3/31/2016 1:13:50 AM
Subject: Re: No caching of Octet Stream from Filehippo

The content is being cached but everytime when im attempting to download the same file the origin is responding with a different URL everytime. The previously downloaded URL is cached properly:

459368207.221 22871 119.73.7.11 ERR_CLIENT_ABORT/200 3774362 GET http://fs37.filehippo.com/1697/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe - DIRECT/fs37.filehippo.com application/octet-stream 1459368253.311 41029 119.73.7.11 ERR_CLIENT_ABORT/200 6541785 GET http://fs37.filehippo.com/1697/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe - DIRECT/fs37.filehippo.com application/octet-stream 1459368256.659 17 119.73.7.11 TCP_HIT/206 312 GET http://fs35.filehippo.com/6294/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe - NONE/- application/octet-stream
First Time:
1459368105.128 272889 119.73.7.11 TCP_MISS/200 31367371 GET http://fs35.filehippo.com/6294/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe - DIRECT/fs35.filehippo.com application/octet-stream
Second Attempt on direct URL:
1459368350.531 93590 119.73.7.11 TCP_HIT/206 31364779 GET http://fs35.filehippo.com/6294/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe - NONE/- application/octet-stream
Difference in URL for the same file/object:

GET http://fs37.filehippo.com/1697/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe

http://fs35.filehippo.com/6294/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe

--
Regards,
Faisal.



------ Original Message ------
From: "Reindl Harald" <[email protected]>
To: [email protected]
Sent: 3/31/2016 12:50:36 AM
Subject: Re: No caching of Octet Stream from Filehippo



Am 30.03.2016 um 21:42 schrieb Muhammad Faisal:
Here is the output of CURL, I have included origin headers in my
original email

[root@wc01 /]# curl --head
http://fs37.filehippo.com/9546/46cfd241f1da4ae9812f512f7b36643c/vlc-2.2.2-win64.exe

HTTP/1.1 200 OK
Content-Length: 90
Content-Type: text/html
Last-Modified: Fri, 17 Apr 2015 06:33:53 GMT
Accept-Ranges: bytes
ETag: "b4357379d878d01:0"
Server: Microsoft-IIS/7.5
Date: Wed, 30 Mar 2016 19:41:14 GMT

"It seems the object caching is not happening even if "Last Modified"
a proper origin would send cache-control headers

but are ypu *really* sure it's not cached?

what does the same curl-request against the proxy show with at least two requests - see the growing ATS-"Age" header below

[harry@srv-rhsoft:~]$ curl --head http://local.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:46:29 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:47:29 GMT
Connection: close
Content-Type: image/gif
_____________________________


[harry@srv-rhsoft:~]$ curl --head http://www.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:49:38 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:50:38 GMT
Content-Type: image/gif
Age: 0
Connection: keep-alive

[harry@srv-rhsoft:~]$ curl --head http://www.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:49:38 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:50:38 GMT
Content-Type: image/gif
Age: 1
Connection: keep-alive

[harry@srv-rhsoft:~]$ curl --head http://www.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:49:38 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:50:38 GMT
Content-Type: image/gif
Age: 2
Connection: keep-alive

[harry@srv-rhsoft:~]$ curl --head http://www.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:49:38 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:50:38 GMT
Content-Type: image/gif
Age: 3
Connection: keep-alive

[harry@srv-rhsoft:~]$ curl --head http://www.rhsoft.net/images/pixel.gif
HTTP/1.1 200 OK
Date: Wed, 30 Mar 2016 19:49:38 GMT
X-Content-Type-Options: nosniff
Last-Modified: Wed, 28 May 2014 11:42:20 GMT
ETag: "2b-4fa744e151f00"
Accept-Ranges: bytes
Content-Length: 43
Cache-Control: max-age=60
Expires: Wed, 30 Mar 2016 19:50:38 GMT
Content-Type: image/gif
Age: 4
Connection: keep-alive




Reply via email to