Consider effective CSP in js combiner cache key suffix
diff --git a/net/instaweb/rewriter/js_combine_filter.cc b/net/instaweb/rewriter/js_combine_filter.cc
index c070eb0..fafe0e7 100644
--- a/net/instaweb/rewriter/js_combine_filter.cc
+++ b/net/instaweb/rewriter/js_combine_filter.cc
@@ -386,7 +386,10 @@
virtual GoogleString CacheKeySuffix() const {
// Updated to make sure certain bugfixes actually deploy, and we don't
// end up using old broken cached version.
- return "v4";
+ MD5Hasher hasher;
+ auto id = StrCat("v4|",
+ Driver()->content_security_policy().ToIdentityString());
+ return hasher.Hash(id);
}
private: