httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Akins <>
Subject Re: [PATCH] mod_cache fixes: #8
Date Mon, 02 Aug 2004 20:09:34 GMT
Justin Erenkrantz wrote:

> MD5 has the possibility for collisions, too.  What do squid or other 
> proxies  do?

True. I'll see what others do.

> On one hand, I think doing MD5 is sort of silly - just use the URL 
> itself.  *shrug*  -- justin

With mod_disk_cache, how about urls such as:

or when you need to cache two different versions of the same URL because 
of Vary?

I actually have somewhat of a solution:

URL encode the uri and any vary elements:
Accept-Encoding: gzip
Cookie: Special=SomeValue

may become:

A very simple hashing function could put this in some directory 
structure, so the file on disk may be:


Should be pretty fast (?) if the urlencode was effecient.

Brian Akins
Senior Systems Engineer
CNN Internet Technologies

View raw message