From cb2fa9deb4d811796d77ba18ba4629b795c70947 Mon Sep 17 00:00:00 2001 From: Robohash <401330+e1ven@users.noreply.github.com> Date: Tue, 16 Feb 2016 18:23:31 -0500 Subject: [PATCH] It looks like I wasn't specifying a cache header at all. I could have sworn I was. Woops. --- robohash/webfront.py | 1 + 1 file changed, 1 insertion(+) diff --git a/robohash/webfront.py b/robohash/webfront.py index 9b6f73b..9244a53 100755 --- a/robohash/webfront.py +++ b/robohash/webfront.py @@ -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)