Skip to content
Snippets Groups Projects
Commit 1bb05283 authored by Mark Haines's avatar Mark Haines
Browse files

Add Cache-Control header to identicon

parent f2eda123
No related branches found
No related tags found
No related merge requests found
......@@ -45,4 +45,7 @@ class IdenticonResource(Resource):
height = int(request.args.get("height", [96])[0])
identicon_bytes = self.generate_identicon(name, width, height)
request.setHeader(b"Content-Type", b"image/png")
request.setHeader(
b"Cache-Control", b"public,max-age=86400,s-maxage=86400"
)
return identicon_bytes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment