mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
add note about ngx_brotli weakening etags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user