add note about ngx_brotli weakening etags

This commit is contained in:
perennial
2024-12-04 02:05:10 +11:00
parent b4a0c7444a
commit cd3407413e
+1
View File
@@ -23,6 +23,7 @@ func RenderWithContentType[T any](w http.ResponseWriter, r *http.Request, conten
}
// Set strong ETag
// NOTE: the ngx_brotli nginx module appears to weaken strong ETags (even though gzipping is fine)
w.Header().Set("ETag", `"`+etag+`"`)
// As a default, set Cache-Control to no-cache, which allows revalidation via ETag