Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Browser cache for 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
powdahound committed Nov 23, 2012
1 parent dd5a010 commit 7cb6afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 7cb6afa

Please sign in to comment.