The question arises "Does Squid run the redirector before or after it
checks for an object in the cache?". If Squid runs the redirector and then
checks for the result in cache (which is the way I hope it's working),
then it doesn't matter which object is cached -- subnets requesting the
non-redirected object would get it from the cache, and subnets that were
requesting the redirected URL would get the new object from the cache. If
Squid checks the cache FIRST and then runs the redirector on the misses,
then problem could arise.
From my current script (although I've only been running it about a day
now), it looks like Squid runs the script for each request, and then looks
for the URL the script returns to see if it's cached.
-Bill
On Tue, 6 Jan 1998, Dancer wrote:
> Yes. The script is passed the client-address as well as the URL, so your
> script can choose.
>
> HOWEVER, this is not a good idea if the file is cached under it's original
> (pre-redirection) name. Only if it is cached under it's new (post-redirection
> name).
>
> Otherwise you get the situation where subnet A requests foo.html and gets
> redirected to bar.html, then subnet B requests foo.html and gets a cached
> copy?
>
> How is this handled. I've just realised that I need to know fairly urgently.
>
> D
>
>
>
> --
> Note to evil sorcerers and mad scientists: don't ever, ever summon powerful
> demons or rip holes in the fabric of space and time. It's never a good idea.
> ICQ UIN: 3225440
>
>
Received on Tue Jan 06 1998 - 10:13:44 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:19 MST