Skip to content
Snippets Groups Projects
Commit 7887cb1a authored by ale's avatar ale
Browse files

prevent caching of the m3u response

parent 52c686f5
Branches
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ func (h *HttpRedirector) serveRelay(w http.ResponseWriter, r *http.Request) {
m3u := fmt.Sprintf("http://%s%s\n", relayAddr, mount.Name)
w.Header().Set("Content-Length", strconv.Itoa(len(m3u)))
w.Header().Set("Content-Type", "audio/x-mpegurl")
w.Header().Set("Expires", "-1")
w.Header().Set("Cache-Control", "private, max-age=0")
io.WriteString(w, m3u)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment