Commit ee10fbac authored by Janne Koschinski's avatar Janne Koschinski

Added caching policy

parent 6ec7d404
......@@ -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)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment