(w http.ResponseWriter, ttl time.Duration)
| 1181 | } |
| 1182 | |
| 1183 | func setCacheControl(w http.ResponseWriter, ttl time.Duration) { |
| 1184 | w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%.0f", ttl.Seconds())) |
| 1185 | } |
no outgoing calls
no test coverage detected