From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.141.4.15 with SMTP id g15cs336903rvi; Wed, 7 Apr 2010 22:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of 3LGO9SwgNCpgE2LL96OE3G65A4C6J.GJ8J24C-56N6D8GG8D68JGMHK.4GE@groups.bounces.google.com designates 10.90.20.18 as permitted sender) client-ip=10.90.20.18; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3LGO9SwgNCpgE2LL96OE3G65A4C6J.GJ8J24C-56N6D8GG8D68JGMHK.4GE@groups.bounces.google.com designates 10.90.20.18 as permitted sender) smtp.mail=3LGO9SwgNCpgE2LL96OE3G65A4C6J.GJ8J24C-56N6D8GG8D68JGMHK.4GE@groups.bounces.google.com; dkim=pass header.i=3LGO9SwgNCpgE2LL96OE3G65A4C6J.GJ8J24C-56N6D8GG8D68JGMHK.4GE@groups.bounces.google.com Received: from mr.google.com ([10.90.20.18]) by 10.90.20.18 with SMTP id 18mr4984961agt.4.1270702894458 (num_hops = 1); Wed, 07 Apr 2010 22:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received:received-spf:received:mime-version:received:date :received:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; bh=N0ApXa1TSPs0ItadgZr9207WUsPrwqPY/oi7mPfS/3Q=; b=zfBXDTB2u0vpn5b9hymCUvFDRyaroGw968PZD7duvfyKmL7iTw704j47ph3PL+zSJW SA1wii/Vru61AEObv7Dx4TKdqT5cugYLqoZ3ZfdnT8FCmd2i5deXYdaliZmnSU332evF 71l8vhb15vH/vAeN/V7RleGAYCF8TlfsreSjU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:message-id:subject:from :to:x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type; b=RJ9WVG+HgI8KYev0GEP1m1VLA0vV4ALtoW6E8LiHrt0n4noe7YekPcvPMqEG+NRHS+ gi26xJPFFOgazrya6ODRi2nbfi3SzAPQkhIt4JmrmAeOttCZczJy/2KSMXbTzjcNsNNC 66M2oe2COHYD0z3nWdhip1p4oH2BnkOvtym0k= Received: by 10.90.20.18 with SMTP id 18mr823846agt.4.1270702892784; Wed, 07 Apr 2010 22:01:32 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.87.8.39 with SMTP id l39ls735785fgi.2.p; Wed, 07 Apr 2010 22:01:31 -0700 (PDT) Received: by 10.86.119.24 with SMTP id r24mr610647fgc.5.1270702891028; Wed, 07 Apr 2010 22:01:31 -0700 (PDT) Received: by 10.223.73.147 with SMTP id q19mr772167faj.16.1270701623733; Wed, 07 Apr 2010 21:40:23 -0700 (PDT) Received: by 10.223.73.147 with SMTP id q19mr772166faj.16.1270701623680; Wed, 07 Apr 2010 21:40:23 -0700 (PDT) Return-Path: Received: from mail-bw0-f214.google.com (mail-bw0-f214.google.com [209.85.218.214]) by gmr-mx.google.com with ESMTP id 12si1199836fxm.8.2010.04.07.21.40.23; Wed, 07 Apr 2010 21:40:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.218.214 is neither permitted nor denied by best guess record for domain of matthewm@boedicker.org) client-ip=209.85.218.214; Received: by bwz6 with SMTP id 6so1630696bwz.13 for ; Wed, 07 Apr 2010 21:40:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.114.198 with HTTP; Wed, 7 Apr 2010 21:40:23 -0700 (PDT) Date: Thu, 8 Apr 2010 00:40:23 -0400 Received: by 10.204.126.130 with SMTP id c2mr10014324bks.155.1270701623221; Wed, 07 Apr 2010 21:40:23 -0700 (PDT) Message-ID: Subject: changing etag in deflater middleware From: "Matthew M. Boedicker" To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.218.214 is neither permitted nor denied by best guess record for domain of matthewm@boedicker.org) smtp.mail=matthewm@boedicker.org X-Original-Sender: matthewm@boedicker.org Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/95487a3a809363d4 X-Message-Url: http://groups.google.com/group/rack-devel/msg/a4d0cdb10cbc2e2d Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=0016e6d58b28de1fe60483b2468b --0016e6d58b28de1fe60483b2468b Content-Type: text/plain; charset=ISO-8859-1 I wrote a middleware to change the etag in the deflater middleware if the content encoding is changed because two representations should not have the same etag. If etag is present it adds the content encoding to the end of it, so if the ETag is previously set to "xxx" from Rack::ETag it becomes "xxxgzip" if it gets gzipped. Is this something that should be done inside Deflater? It's a simple change but I had trouble getting the test code to pass along an etag header. If there is any interest I can finish a patch to deflater or submit it as a separate middleware. -- To unsubscribe, reply using "remove me" as the subject. --0016e6d58b28de1fe60483b2468b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I wrote a middleware to change the etag in the deflater middleware if the c= ontent encoding is changed because two representations should not have the = same etag. If etag is present it adds the content encoding to the end of it= , so if the ETag is previously set to "xxx" from Rack::ETag it be= comes "xxxgzip" if it gets gzipped.

Is this something that should be done inside Deflater?

It's = a simple change but I had trouble getting the test code to pass along an et= ag header. If there is any interest I can finish a patch to deflater or sub= mit it as a separate middleware.

--0016e6d58b28de1fe60483b2468b--