Skip to content
Snippets Groups Projects
Verified Commit ee10fbac authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Added caching policy

parent 6ec7d404
Branches
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ func pageIndex(ctx PageContext) http.Handler {
panic(err)
}
} else {
w.Header().Set("Vary", "Accept-Encoding")
w.Header().Set("Cache-Control", "public, max-age=31536000")
ctx.Images.ServeHTTP(w, r)
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment