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
10 lines
191 B
Go
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",
|
|
}
|