[SQU] Redirectors

From: Luke Burton <lburton@dont-contact.us>
Date: Wed, 30 Aug 2000 13:43:50 +1100 (EST)

Hi all,

A very quick question. What is the logic behind paying attention to a 302
response from a redirector process only when the original page being
requested is a cache miss ?

Eg. if I request (with redirectors disabled) a page like
'http://www.cnn.com', I get cnn.com. Good.

I then put a redirector in which sends 302:http://www.yahoo.com to stdout
for everything it receives.

Hey presto - using squid's 'client' program, all I get is cnn.com again,
rather than a 302 response instructing me to go to www.yahoo.com.

Now I've looked at the debugging output from client_side.c, and at the
source, and it seems that a 301 or 302 will only be sent if we get into
clientProcessMiss.

Why?

Thanks for any help,

Luke.

-- 
Luke Burton, Analyst Programmer.
inter-touch Pty Ltd (http://www.inter-touch.com).
"How should I know if it works?  That's what beta 
testers are for.  I only coded it." (Linus Torvalds)
--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Aug 29 2000 - 20:45:53 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:55:07 MST