Properly use Vary header
This commit is contained in:
1 parent
a0d774c9a4
commit
73a469a7de
1 file changed
+3
-3
@@ -208,9 +208,9 @@ static int local_handler(client_ctx_t *ctx) {
|
||||
enc = COMPRESS_GZ;
|
||||
}
|
||||
}
|
||||
if (enc != 0) {
|
||||
http_add_header_field(&res->hdr, "Vary", "Accept-Encoding");
|
||||
}
|
||||
}
|
||||
if (uri->meta->filename_comp_br[0] != 0 || uri->meta->filename_comp_gz[0] != 0) {
|
||||
http_add_header_field(&res->hdr, "Vary", "Accept-Encoding");
|
||||
}
|
||||
|
||||
buf1[0] = 0;
|
||||
|
||||
Reference in new issue
Block a user