Skip to content

Commit

Permalink
Added no-cache header
Browse files Browse the repository at this point in the history
  • Loading branch information
srgoni committed Jan 5, 2018
1 parent c5a7519 commit 954b2b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/restreamer/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ func (conn *Connection) Serve() {
conn.writer.Header().Set("Last-Modified", time.Now().UTC().Format(http.TimeFormat))
// other headers to comply with the specs
conn.writer.Header().Set("Accept-Range", "none")
// suppress caching by intermediate proxies
conn.writer.Header().Set("Cache-Control", "no-cache,no-store,no-transform")
// use Add and Set to set more headers here
// chunked mode should be on by default
conn.writer.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit 954b2b6

Please sign in to comment.