﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16035	GZipMiddleware doesn't change an ETag	anonymous	Jakub Wiśniowski	"The GZipMiddleware does not alter an ETag, if one is present. This means that e.g. if USE_ETAGS is True and CommonMiddleware is used, or if UpdateCacheMiddleware is used, that the same ETag is returned for both gzipped and non-gzipped responses. This is against spec (RFC2616 section 13.3.3 says a strong validator should change if any entity header or the body changes - when gzipped, the body has changed and Content-Encoding is an entity header). This is the second pitfall listed here: http://www.mnot.net/blog/2007/08/07/etags

A patch to gzip.py would, I think, simply see if an ETag is set, and if so add "";gzip"" to the end (inside the quote, of course) or similar."	Bug	closed	HTTP handling	1.4	Normal	fixed		Maciej Wiśniowski	Accepted	1	0	0	0	1	0
