httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Zuckerman <j.zucker...@gmail.com>
Subject Re: [users@httpd] Custom ETags
Date Tue, 13 Apr 2010 14:49:53 GMT
On Tue, Apr 13, 2010 at 10:34 AM, Brian Mearns <bmearns@ieee.org> wrote:

> I'd like to use stronger and correlated ETag, namely the hash of the
> content being served. Obviously it's a drag to do this in-line, so I'm
> planning an automated task to generate the ETag values and store them
> on the server. Is there any way I can get httpd to grab these stored
> values for use in the Etag header? I'm flexible on how I store them:
> in a database, in one large file, each in its own file named according
> to the resource, etc.
>
> Any ideas?
>
> Thanks,
> -Brian
>
> --
> Feel free to contact me using PGP Encryption:
> Key Id: 0x3AA70848
> Available from: http://keys.gnupg.net
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
I have some "static" content that's actually built dynamically on the server
(it's just a concatenated, minified JS or CSS file), and therefore can't use
Apache's default etags/expires headers which I believe only apply to real
files, so I do the same thing you're suggesting, in php.
I would much rather let Apache take care of this for me, but my obsessive
and orderly mind demands that I keep the Javascript and CSS that applies to
different parts of the site in different files, and my background in
high-load high-availability web-serving makes me want to keep the number of
http requests down.

So my question to you is, what is your reason for wanting to do this, and
how would you implement if it did exist?  It's pretty trivial to do it with
a scripting language that can alter response headers, if in fact it's really
necessary..

Mime
View raw message