MCPcopy
hub / github.com/wavetermdev/waveterm / setNoCacheHeaders

Function setNoCacheHeaders

tsunami/engine/serverhandlers.go:48–52  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

46}
47
48func setNoCacheHeaders(w http.ResponseWriter) {
49 w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
50 w.Header().Set("Pragma", "no-cache")
51 w.Header().Set("Expires", "0")
52}
53
54func setCORSHeaders(w http.ResponseWriter, r *http.Request) bool {
55 corsOriginsStr := os.Getenv("TSUNAMI_CORS")

Callers 8

handleRenderMethod · 0.85
handleDataMethod · 0.85
handleConfigMethod · 0.85
handleSchemasMethod · 0.85
handleModalResultMethod · 0.85
handleTermInputMethod · 0.85
handleSSEMethod · 0.85
handleManifestMethod · 0.85

Calls 2

SetMethod · 0.45
HeaderMethod · 0.45

Tested by

no test coverage detected