отключил кэш
This commit is contained in:
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user