fix: Add additional cache headers for documentation

- Add Pragma: no-cache
- Add Expires: 0
- Ensure documentation never cached on api.neomovies.ru
This commit is contained in:
2025-10-18 21:16:17 +00:00
parent 35ceb00217
commit 36389f674f

View File

@@ -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)
}