Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 59310 invoked from network); 13 Apr 2010 20:50:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Apr 2010 20:50:53 -0000 Received: (qmail 74967 invoked by uid 500); 13 Apr 2010 20:50:50 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74945 invoked by uid 500); 13 Apr 2010 20:50:50 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74937 invoked by uid 99); 13 Apr 2010 20:50:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Apr 2010 20:50:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of flo.sch@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Apr 2010 20:50:41 +0000 Received: (qmail invoked by alias); 13 Apr 2010 20:50:20 -0000 Received: from 88-134-16-189-dynip.superkabel.de (EHLO [192.168.0.111]) [88.134.16.189] by mail.gmx.net (mp070) with SMTP; 13 Apr 2010 22:50:20 +0200 X-Authenticated: #19662686 X-Provags-ID: V01U2FsdGVkX19yC68DW21yw9F401wEbUcgBWdb811WaamkOxqIwS /al4nQpHfKdYDG From: "Florian S." To: users@httpd.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 13 Apr 2010 22:50:17 +0200 Message-ID: <1271191817.3245.7.camel@florian-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59999999999999998 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Custom ETags Am Dienstag, den 13.04.2010, 10:34 -0400 schrieb Brian Mearns: > 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 > Hi, Here a short presentation of how I would face this problem: I found a nice & powerful way of including external scripts depending on URL/I: RewriteMap. I think its performance is sufficient, since the process gets spawned only once and the stdio-stuff happens only. Text-Databases are supported, too. The output (the ETag?) could be stored in a Envar with a corresponding RewriteRule (E-flag). Then you can do a few checks and/or use 'Header set ETag new_tag env=new_tag' or something similiar. Not tested at all & sounds strange, but may be a starting point. Regards: Florian --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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