Search squid archive

Re: how .htaccess gets cached and works with Last-Modified

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

 



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


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

  Powered by Linux