Add Vary: Accept-Encoding header (only header keys are re-cased)
Alan Pearce alan@alanpearce.eu
Wed, 13 Sep 2023 14:45:22 +0200
1 files changed, 4 insertions(+), 1 deletions(-)
jump to
M src/index.ts → src/index.ts
@@ -9,7 +9,10 @@ const base = "../website/"; const publicDir = path.resolve(base, "public") + path.sep; const config = readConfig(base); -const defaultHeaders = config.extra.headers; +const defaultHeaders = { + ...config.extra.headers, + vary: "Accept-Encoding", +}; type File = { filename: string;