Henrik Nordstrom wrote:
>
> Miquel van Smoorenburg wrote:
>
> > http://www.cistron.nl/~miquels/
> > http://www.cistron.nl/%7emiquels/
> > http://www.cistron.nl/%7Emiquels/
> >
> > Should squid realize that these are the same URLs and cache them only
> > once, or should squid treat them as 3 different URLs ? I think the
> > latter is what it does now.
>
> To HTTP these are three equivalent URLs (RFC 2616 section 3.2.3), and
> Squid should probably threat them as one. Not sure how to do so in a
> safe manner thought as there may be uncompliant servers which do not.
url-decode the URL and then URL encode it before using it as a key (for
storing or matching)? I'd then also set the host-portion of the name all
lower-case. This wouldn't catch everything, but would catch more,
methinks.
D
Received on Wed Jul 14 1999 - 18:49:34 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:23 MST