about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
authorAlan Pearce2023-09-13 14:45:22 +0200
committerAlan Pearce2023-09-13 14:45:22 +0200
commitb52a1c8420fafd52fbc115a67e56db6e6a2d3875 (patch)
treea5a3de7349c55584df156e2da3539df206a60fbf /src/index.ts
parentbdaab2de153d5835c34445f607a9c8d649ba08f4 (diff)
downloadwebsite-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.tar.lz
website-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.tar.zst
website-b52a1c8420fafd52fbc115a67e56db6e6a2d3875.zip
Add Vary: Accept-Encoding header (only header keys are re-cased)
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts5
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;