From 36389f674f1c5848eb646cd5c07149b0c03081c4 Mon Sep 17 00:00:00 2001 From: Erno Date: Sat, 18 Oct 2025 21:16:17 +0000 Subject: [PATCH] fix: Add additional cache headers for documentation - Add Pragma: no-cache - Add Expires: 0 - Ensure documentation never cached on api.neomovies.ru --- pkg/handlers/docs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/handlers/docs.go b/pkg/handlers/docs.go index cd3a8be..89d2f6d 100644 --- a/pkg/handlers/docs.go +++ b/pkg/handlers/docs.go @@ -56,6 +56,8 @@ func (h *DocsHandler) ServeDocs(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") + w.Header().Set("Pragma", "no-cache") + w.Header().Set("Expires", "0") fmt.Fprintln(w, htmlContent) }