Skip to content

Commit 31ac32e

Browse files
authored
Remove etag on /amppkg/cert URL. (#322)
It is incorrect, since it contains only the certName, but the cert contents vary when the OCSP response is updated. This is conflicting with caching intermediaries.
1 parent 4e25755 commit 31ac32e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packager/certcache/certcache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ func (this *CertCache) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
169169
expiry = 0
170170
}
171171
resp.Header().Set("Cache-Control", "public, max-age="+strconv.Itoa(expiry))
172-
resp.Header().Set("ETag", "\""+this.certName+"\"")
173172
resp.Header().Set("X-Content-Type-Options", "nosniff")
174173
cbor, err := this.createCertChainCBOR(ocsp)
175174
if err != nil {

0 commit comments

Comments
 (0)