Re: [squid-users] how .htaccess gets cached and works with Last-Modified

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Wed, 12 May 2010 22:05:10 +0200

ons 2010-05-12 klockan 15:48 +0300 skrev Reverse Squid:
> Hello List,
>
> We have an .htaccess in a certain directory in our origin server which
> redirects requests upon USER-AGENT.
> How does Squid treat that .htaccess?

Depends on what the HTTP response looks like.

> If it were to cache it, as it itself does not change, all requests
> will follow the first USER-AGENT, ie, if I come with Firefox 2.0 I get
> redirected to www.redirectedexample.com
> and that page gets cached. The second person that will request that
> page will get to www.redirectedexample.com and will bypass the
> .htaccess check, am I right?

Depends on the response. A correct cachable redirection response should
include both an expiry time and a Vary header indicating which request
headers the server used for determining the response (except for Host).

Regards
Henrik
Received on Wed May 12 2010 - 20:05:13 MDT

This archive was generated by hypermail 2.2.0 : Thu May 13 2010 - 12:00:05 MDT