filebrowser/http/headers.go
Kloon ImKloon 8c60137fe4
Add ability to use vite dev alongside the go backend
The point is to not have to rebuild every time to test a change, but make use of Vite's HMR and other goodies.
Some things are not yet working in dev mode:
- Upload is stuck and fails
- Reloading page while on a file will give 404 error
- Prob more that i didnt catch
2023-08-18 18:25:24 +02:00

10 lines
191 B
Go

//go:build !dev
// +build !dev
package http
// global headers to append to every response
var global_headers = map[string]string{
"Cache-Control": "no-cache, no-store, must-revalidate",
}