Re: Custom ETags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Tue, Apr 13, 2010 at 10:34 AM, Brian Mearns <bmearns@xxxxxxxx> 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@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
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..
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]