You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Paul Querna <ch...@force-elite.com> on 2005/07/20 17:25:32 UTC
[PATCH] mod_disk_cache: change handling of varied contents
The attached patch changes how we store the contents of a varied URI.
If a URI is varied, all variations will be stored underneath a new
<hash>.header.vary/ directory.
This enables future tools, such as the ability to easily delete a URI
from the cache, without scanning the entire tree, just to find the
possible varied versions.
The code was written pretty quickly, and I would love some feedback both
on the idea, and the hacky way I did it :)
-Paul
Re: [PATCH] mod_disk_cache: change handling of varied contents
Posted by "Akins, Brian" <Br...@turner.com>.
On 7/20/05 11:25 AM, "Paul Querna" <ch...@force-elite.com> wrote:
> If a URI is varied, all variations will be stored underneath a new
> <hash>.header.vary/ directory.
Looks good for starters.
Good idea.
I would like a way to override some varies. For example, in a reverse proxy
situation, you may vary on "User-Agent" header for gzip stuff. However, you
really only care whether the user-agent can do gzip or not, you do not want
to store a different version for every browser.
May be something like this in config:
VaryValue User-Agent gzip
Where gzip is an environment value set by SetEnv if or something similar.
This may have been discussed before.