mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Disable cache-control header on nocache tag
This commit is contained in:
@@ -67,7 +67,9 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
"lastNotes": renderableLastNotes,
|
||||
}
|
||||
|
||||
// +build !nocache
|
||||
w.Header().Set("Cache-Control", "max-age=604800")
|
||||
|
||||
if err := tmpl.ExecuteTemplate(w, templateMapping["relay"], params); err != nil {
|
||||
log.Error().Err(err).Msg("error rendering")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user