Search squid archive

Re: [Help] Reverse Proxy: suspend bulk requests for invalid urls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/05/11 17:36, Le Trung Kien wrote:
I have just added the hard Expires value, but still MISS

squidclient -m HEAD http://invalid_URL
HTTP/1.0 404 Not Found
Cache-Control: public
Content-Length: 1635
Content-Type: text/html
Expires: Sat, 14 May 2011 16:00:00 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Fri, 13 May 2011 05:34:17 GMT
X-Cache: MISS


Are you testing only with HEAD?
NP: HEAD contains no body for caching and thus does not cause anything to become a HIT. Use a GET request to test this.

Also check your refresh_pattern are not breaking the cache behaviour this by ignoring/overriding cache-control and expires values.

Amos

On Fri, May 13, 2011 at 11:57 AM, Amos Jeffries wrote:
On 13/05/11 16:34, Le Trung Kien wrote:

I have just modified the HTTP header respond of IIS Servers

squidclient -m HEAD http://invalid_URL
HTTP/1.0 404 Not Found
Cache-Control: public
Content-Length: 1731
Content-Type: text/html
Expires: 1000
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Fri, 13 May 2011 04:30:09 GMT
X-Cache: MISS

It still gets MISS :(

Expires: is a timestamp (same format as Date: header) but in the future from
the value in Date. -1 means broken service discard immediately. All other
values and content is ignored.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.12
  Beta testers wanted for 3.2.0.7 and 3.1.12.1



--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.12
  Beta testers wanted for 3.2.0.7 and 3.1.12.1


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux