Skip to content

Commit

Permalink
disable caching
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Dec 1, 2024
1 parent f86c978 commit 2e00f65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ func SetJsonHeader(w *http.ResponseWriter) {

func WriteCacheHeader(w *http.ResponseWriter) {
SetJsonHeader(w)
(*w).Header().Set("Cache-Control", "max-age:300, public")
(*w).Header().Set("Last-Modified", LastUpdate.Format(http.TimeFormat))
(*w).Header().Set("Expires", time.Now().Add(time.Minute*5).Format(http.TimeFormat))
//(*w).Header().Set("Cache-Control", "max-age:300, public")
//(*w).Header().Set("Last-Modified", LastUpdate.Format(http.TimeFormat))
//(*w).Header().Set("Expires", time.Now().Add(time.Minute*5).Format(http.TimeFormat))
}

// from Armatorix https://codereview.stackexchange.com/questions/272457/decompress-tar-gz-file-in-go
Expand Down

0 comments on commit 2e00f65

Please sign in to comment.