From 7cb6afa32e1e38bd6de2326c45baf620a8797115 Mon Sep 17 00:00:00 2001 From: Garret Heaton <powdahound@gmail.com> Date: Fri, 23 Nov 2012 14:23:45 -0800 Subject: [PATCH] Browser cache for 1 day --- fabfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index 6116046e..93edcb03 100644 --- a/fabfile.py +++ b/fabfile.py @@ -29,7 +29,8 @@ def deploy(root_dir='www'): print '%s -> %s/%s' % (local_path, bucket_name, remote_path) k = Key(bucket) k.key = remote_path - headers = {} + headers = { + "Cache-Control": "max-age=86400, must-revalidate"} k.set_contents_from_filename(local_path, headers=headers, policy='public-read')