all repos — website @ b52a1c8420fafd52fbc115a67e56db6e6a2d3875

My website

Add Vary: Accept-Encoding header (only header keys are re-cased)
Alan Pearce alan@alanpearce.eu
Wed, 13 Sep 2023 14:45:22 +0200
commit

b52a1c8420fafd52fbc115a67e56db6e6a2d3875

parent

bdaab2de153d5835c34445f607a9c8d649ba08f4

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/index.tssrc/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;