about summary refs log tree commit diff stats
path: root/internal/server/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/error.go')
-rw-r--r--internal/server/error.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/server/error.go b/internal/server/error.go
index 51453f4..6994ad7 100644
--- a/internal/server/error.go
+++ b/internal/server/error.go
@@ -21,6 +21,8 @@ func createErrorHandler(
 			Code:          code,
 			Message:       message,
 		}
+		w.Header().Set("Cache-Control", "no-store")
+		w.Header().Del("Vary")
 		w.WriteHeader(code)
 		if r.Header.Get("Fetch") == "true" {
 			err = templates["error"].ExecuteTemplate(w, "main", indexData)