NoCache adds `Cache-Control: private, no-cache, no-store, must-revalidate` to the response header.
(w http.ResponseWriter)
| 9 | |
| 10 | // NoCache adds `Cache-Control: private, no-cache, no-store, must-revalidate` to the response header. |
| 11 | func NoCache(w http.ResponseWriter) { |
| 12 | w.Header().Set("Cache-Control", "private, no-cache, no-store, must-revalidate") |
| 13 | } |
| 14 | |
| 15 | // NoCacheHandlerFunc wraps http.HandlerFunc with `Cache-Control: private, no-cache, no-store, must-revalidate` headers. |
| 16 | func NoCacheHandlerFunc(handle http.HandlerFunc) http.HandlerFunc { |
no test coverage detected