Search squid archive

Help with authentication

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

 



 
I had posted this message earlier, but missed specifying what was not
Working as expected and what help I needed. So I am posting it again [
with due
Apologies ]

Pat C
----------------------------------------

We are using  squid-2.6.STABLE4

We have set up squid to pass authetication requests to the origin server

(squid authentication is not activated )  and for the first request, 
everything works as expected - 
-- squid sends the authentication  request to the origin server 
-- after successful authentication, squid  retrieves the object in the
request. 
-- Subsequent requests to squid for the same object are returned by
squid (from its cache) without going to the origin server. [ THAT IS
WHAT IS EXPECTED - so far so good]
 
When we request the same object from a different browser session or from
a different user, this is what happens:
-- squid sends the request to the origin server for authentication 
-- after  successful authentication, squid retrieves the same object
from the origin server [ THIS IS NOT WHAT IS EXPECTED - we expect squid
to go to the
Origin server ONLY for the authentication and once authentication is 
Successful, we expect squid to serve the object from its cache - rather
than 
Retrieving it again from the origin server ]

Question: What should we do so that once squid has that specific object
in cache,
          it will only go to the origin server for authentication, but
then once
          authentication is successful, serve the object from its cache
[ and not
          re-get it from the origin server ]


Here's the access log from the origin server
-------------------------------------------------
135.16.148.59 - - [02/Feb/2007:16:18:28 -0500] "GET /pat/ HTTP/1.1" 401
401
135.16.148.59 - pat [02/Feb/2007:16:18:36 -0500] "GET /pat/ HTTP/1.1"
200 366
135.16.148.59 - pat [02/Feb/2007:16:21:07 -0500] "GET /pat/overview.pdf
HTTP/1.1" 304 
........
I requested the same object multiple times and nothing was logged here [
origin server log ] which is good
 
Now I opened a new browser and did the same request - and you can see
that the same object was
re-requested by Squid [ and not served from its cache]

135.16.148.59 - - [02/Feb/2007:16:21:29 -0500] "GET /pat/ HTTP/1.1" 401
401
135.16.148.59 - pat [02/Feb/2007:16:21:39 -0500] "GET /pat/ HTTP/1.1"
200 366
135.16.148.59 - pat [02/Feb/2007:16:21:45 -0500] "GET /pat/overview.pdf
HTTP/1.1" 304
------------------------------------------------------
 
Thanks for your help.
 
chendrimada@xxxxxxx


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

  Powered by Linux