отключил кэш
This commit is contained in:
BIN
protoc-frontend.exe
LFS
BIN
protoc-frontend.exe
LFS
Binary file not shown.
@@ -55,6 +55,8 @@ func main() {
|
|||||||
|
|
||||||
// SPA: serve static files, fallback to index.html
|
// SPA: serve static files, fallback to index.html
|
||||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Cache-Control", "no-store")
|
||||||
|
|
||||||
// Try to serve the file directly
|
// Try to serve the file directly
|
||||||
path := strings.TrimPrefix(r.URL.Path, "/")
|
path := strings.TrimPrefix(r.URL.Path, "/")
|
||||||
if path == "" {
|
if path == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user