Re: [squid-users] TCP_REFRESH_UNMODIFIED/304

From: Diego Woitasen <diegows_at_xtech.com.ar>
Date: Wed, 1 Sep 2010 19:02:31 -0300

On Wed, Sep 1, 2010 at 6:07 AM, Jürgen Winkler
<juergen.winkler_at_xidras.com> wrote:
>  Hi,
>
>
> i hope somebody can explain this to me , becaus i can?t explain this
> behavior.
>
>
> We are using squid as an reverse proxy in version 3.1.4.
>
>
> when i open a website in firefox the first time in the squid access.log
> i can see that there is nothing cached , an he is geting the content
> from the backend.
>
> Now it?s cached in squid and also in the browsercache.
>
> Then the second visite, in the proxy log file i can see a
> TCP_REFRESH_UNMODIFIED/304
>
> and the request is send to the back-end.
>
> But why, the proxy has the file in it?s cache, why is the request passed
> thru to the backend.
>
>
> As far as i tested it this is onely happening with firefox and crome,
> when i do the same with opera an ie the log says :
>
>
> TCP_IMS_HIT/304
>
>
> and the request in not passed to the back-end.
>
>
> Is there anything I can do to avoid that the request that do a
> TCP_REFRESH_UNMODIFIED/304 are send to the back ends ??
>
>
> Thx for the help.
>
>

Yes, use the refresh_pattern statement. But you have to sure about
what are you doing :)

Squid tries to follow the standard... May be Opera and Firefox don't
use the same headers in the request.

Regards,
 Diego

-- 
Diego Woitasen
XTECH
Received on Wed Sep 01 2010 - 22:02:38 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 02 2010 - 12:00:02 MDT