On 14/07/2013 4:30 p.m., Golden Shadow wrote:
Hi Squid-Users!
I'm trying to change the refresh_pattern directives in order to be able to
cache the following file:
http://download.thinkbroadband.com/10MB.zip
According to http://redbot.org/ cacheability engine, the file is cacheable:
******************************************************************************************************************************************************************
HTTP/1.1 200 OK
Date: Sun, 14 Jul 2013 04:22:37 GMT
Server: Apache
Last-Modified: Mon, 02 Jun 2008 15:30:33 GMT
ETag: "11f000a-a00000-44eb0ad25f840"
Accept-Ranges: bytes
Content-Length: 10485760
Access-Control-Allow-Origin: *
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/zip
General
The server's clock is correct.
The Content-Length header is correct.
Caching
The resource last changed 5 years 42 days ago.
This response allows all caches to store it.
This response allows a cache to assign its own freshness lifetime.
Validation
If-Modified-Since conditional requests are supported.
If-None-Match conditional requests are supported.
Partial Content
A ranged request returned the correct partial content.
******************************************************************************************************************************************************************
But nevertheless, my squid store.log has the following entry for this file:
1373775292.264 RELEASE -1 FFFFFFFF 33A07BF3D72816A61CACF7753922BB3F 200
1373775276 1212420633 -1 application/zip 10485760/10485760 GET
http://download.thinkbroadband.com/10MB.zip
Which means it was not saved to cache! I tried different refresh_pattern such
as:
refresh_pattern . 43200000 100% 43200000
override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache
ignore-private ignore-auth
but could not get this file to be cached!
43200000 is too large. Your Squid will be cutting that back to 1 year
and the object is already >5 years old.
I also have those directives in my squid.conf:
minimum_object_size 16 KB
maximum_object_size 512 MB
Would you please help me by showing what needs to be changed in order to cache
this file?
Please remove all those ignore-* and override-* options on the
refresh_pattern and ensure the object size limitations are above the
cache_dir settings in your squid.conf.
Amos