отключил кэш

This commit is contained in:
Artem Tsyrulnikov
2026-03-26 00:14:25 +03:00
parent c5c72aa067
commit 5755b02b38
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -55,6 +55,8 @@ func main() {
// SPA: serve static files, fallback to index.html
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store")
// Try to serve the file directly
path := strings.TrimPrefix(r.URL.Path, "/")
if path == "" {