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

From: Le Trung Kien <kienlt_at_vietnamnet.vn>
Date: Tue, 17 May 2011 16:57:54 +0700

Hi, I use both HEAD and GET and always get MISS for invalid_URLs but
with valid_URLs, HIT still be returned.

Kien Le.

On Tue, May 17, 2011 at 1:31 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> 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
>
Received on Tue May 17 2011 - 09:58:01 MDT

This archive was generated by hypermail 2.2.0 : Tue May 17 2011 - 12:00:02 MDT