State dump
diff --git a/net/instaweb/http/http_cache.cc b/net/instaweb/http/http_cache.cc
index 9ad6265..4fdd4d0 100644
--- a/net/instaweb/http/http_cache.cc
+++ b/net/instaweb/http/http_cache.cc
@@ -375,6 +375,12 @@
       content = &new_content;
     }
     hash = hasher_->Hash(*content);
+    const char* content_encoding = headers->Lookup1(HttpAttributes::kContentEncoding);
+    if (content_encoding != nullptr) {
+      hash.append("-");
+      hash.append(content_encoding);
+    }
+    
     headers->Add(HttpAttributes::kEtag, FormatEtag(hash));
     headers_mutated = true;
   }