mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
It looks like I wasn't specifying a cache header at all. I could have sworn I was. Woops.
This commit is contained in:
parent
049fa5aabb
commit
65dfb5b2b2
@ -343,6 +343,7 @@ class ImgHandler(tornado.web.RequestHandler):
|
||||
|
||||
# We're going to be returning the image directly, so tell the browser to expect a binary.
|
||||
self.set_header("Content-Type", "image/" + format)
|
||||
self.set_header("Cache-Control", "public,max-age=31536000")
|
||||
|
||||
# Build our Robot.
|
||||
r.assemble(roboset=roboset,format=format,bgset=bgset,color=color,sizex=sizex,sizey=sizey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user