[squid-users] Re: can squid follow 301/302 without passing the 301/302 back to the client?

From: carteriii <web_s_at_tcarter.com>
Date: Sat, 19 Jan 2013 12:44:12 -0800 (PST)

I put together the textual diagram below to help describe to someone what I
am trying to. I thought I'd include it here in case it gives someone else
any ideas. The greater-than or less-than symbols indicate the direction
that information is flowing.

These first two lines show what normally happens today. The client requests
a specific page. That request goes to Squid (acting as a reverse proxy)
which in turn passes that same request onto the appropriate Server. The
"Server" then responds with a 301/302 and the location that should be used
instead. This response is passed through Squid to the client.

Client > > (req: http://page) > > Squid > > (req: http://page) > > > >
Server

Client < < (resp: 301/location) < < Squid < < (resp: 301/location) < < <
Server

This next diagram shows what I would like to have happen. The first line is
exactly the same. The second & third lines show that when the 301 response
from the server gets to Squid, Squid would turn around and request the new
"location" from another server. Only when the response comes back from that
server will Squid return that response to the client. The client is never
aware that a 301 or 302 occurred.

Client > > (req: http://page) > > Squid > > (req: http://page) > > > >
Server

                                  Squid < < (resp: 301/location) > > <
Server

                                  Squid > > (req: http://location) > >
Server

Client < < (resp: location) < < < Squid < < (resp: location) < < < < <
Server

Is this possible? Thanks in advance.

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/can-squid-follow-301-302-without-passing-the-301-302-back-to-the-client-tp4658091p4658126.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sat Jan 19 2013 - 20:44:14 MST

This archive was generated by hypermail 2.2.0 : Sun Jan 20 2013 - 12:00:06 MST