rack/rack — pull request #346 by fabiokr (2012-02-23 14:48:55+00:00)
Title: Skips Etag even if Cache-Control has a no-cache value together with other options

While developing a Rack proxy, I noticed that Etags were being applied to the response, even tough the "Cache-Control" header was set with "no-cache". The thing is, "Cache-Control" had more than one option set, specifically "no-cache, must-revalidate", and Rack ETag middleware was skipping only if "Cache-Control" is set exactly to "no-cache". This patch should fix that behavior.