From 7887cb1a9c2b0ce9acc3bfdadef82b1b32c3411b Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 10 Nov 2013 18:08:16 +0000
Subject: [PATCH] prevent caching of the m3u response

---
 fe/http.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fe/http.go b/fe/http.go
index cc72036d..6fef2209 100644
--- a/fe/http.go
+++ b/fe/http.go
@@ -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)
 }
 
-- 
GitLab