diff options
author | Alan Pearce | 2023-09-13 14:45:22 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-13 14:45:22 +0200 |
commit | b52a1c8420fafd52fbc115a67e56db6e6a2d3875 (patch) | |
tree | a5a3de7349c55584df156e2da3539df206a60fbf | |
parent | bdaab2de153d5835c34445f607a9c8d649ba08f4 (diff) | |
download | website-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.tar.lz website-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.tar.zst website-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.zip |
Add Vary: Accept-Encoding header (only header keys are re-cased)
-rw-r--r-- | src/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 60d7bb7..076b7ee 100644 --- a/src/index.ts +++ b/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; |