mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 06:44:22 +01:00
log 404s and other log improvements.
This commit is contained in:
@@ -17,7 +17,7 @@ func renderSitemapIndex(w http.ResponseWriter, r *http.Request) {
|
||||
if len(npubs) != 0 {
|
||||
w.Header().Set("Cache-Control", "max-age=3600")
|
||||
} else {
|
||||
w.Header().Set("Cache-Control", "max-age=60")
|
||||
w.Header().Set("Cache-Control", "max-age=180")
|
||||
}
|
||||
|
||||
w.Header().Add("content-type", "text/xml")
|
||||
|
||||
Reference in New Issue
Block a user