mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-23 06:54:20 +01:00
add cache directive saying that sitemaps are only valid for one hour.
This commit is contained in:
@@ -71,6 +71,7 @@ func renderArchive(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
w.Header().Add("content-type", "text/xml")
|
||||
w.Header().Set("Cache-Control", "public, max-age=3600")
|
||||
w.Write([]byte(XML_HEADER))
|
||||
SitemapTemplate.Render(w, &SitemapPage{
|
||||
Host: s.Domain,
|
||||
|
||||
Reference in New Issue
Block a user