rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* changing etag in deflater middleware
@ 2010-04-08  4:40 Matthew M. Boedicker
  0 siblings, 0 replies; only message in thread
From: Matthew M. Boedicker @ 2010-04-08  4:40 UTC (permalink / raw)
  To: rack-devel

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-08  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-08  4:40 changing etag in deflater middleware Matthew M. Boedicker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).