diff --git a/src/streamer.rs b/src/streamer.rs index 8a9a8c6..a9a3285 100644 --- a/src/streamer.rs +++ b/src/streamer.rs @@ -11,7 +11,12 @@ pub async fn stream_handler(State(state): State>) -> Response { Response::builder() .header("Content-Type", "audio/mpeg") - .header("Cache-Control", "no-cache") + .header("Cache-Control", "no-cache, no-store, must-revalidate") + .header("Pragma", "no-cache") + .header("Expires", "0") + .header("Accept-Ranges", "none") + .header("Transfer-Encoding", "chunked") + .header("X-Content-Duration", "infinity") .body(body) .unwrap() }