Skip to content

Commit

Permalink
Lower cache time drastically
Browse files Browse the repository at this point in the history
  • Loading branch information
endigma committed Sep 14, 2021
1 parent 85a7042 commit 0c105d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var Handler = http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
}

cacheSince := time.Now().Format(http.TimeFormat)
cacheUntil := time.Now().AddDate(60, 0, 0).Format(http.TimeFormat)
cacheUntil := time.Now().AddDate(0, 0, 1).Format(http.TimeFormat)

rw.Header().Set("Cache-Control", "max-age:290304000, public")
rw.Header().Set("Last-Modified", cacheSince)
Expand Down

0 comments on commit 0c105d1

Please sign in to comment.