Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package middleware |
|
|
|
import ( |
|
"net/http" |
|
) |
|
|
|
//DisableCache writes the disable cache header on the responses |
|
func DisableCache(w *http.ResponseWriter) { |
|
(*w).Header().Set("Cache-Control", "no-cache, no-store, must-revalidate") |
|
(*w).Header().Set("Expires", "0") |
|
}
|
|
|