Re: [squid-users] what does Squid do if two files have the same content and different file name?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 22 Aug 2011 16:55:37 +1200

On 22/08/11 13:54, Raymond Wang wrote:
> Hi, all:
>
> In our company, the business logic is common: different URL may
> refer to the same content files. so in order to optimize the usage of
> memory, it is better that Squid would keep only object cached when the
> content is equal to each other for several files.
>
> does squid support this feature? if so, how can I configure it?

In HTTP these are two separate objects. Either URL may change without
notice independent of the other. Even if the source files on disk is
identical at all times HTTP may transfer two non-identical variants
based on negotiated content settings.

To make them the same object in HTTP one of the locations should be a
3xx redirect response pointing at the other source.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.14
   Beta testers wanted for 3.2.0.10
Received on Mon Aug 22 2011 - 04:55:42 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 22 2011 - 12:00:02 MDT