Skip to content

Commit

Permalink
Check for S3_USE_CACHE_CONTROL boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
hannseman committed Jun 10, 2013
1 parent 30190f7 commit c07be84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_s3.py
Expand Up @@ -226,6 +226,6 @@ def init_app(self, app):

if app.config['USE_S3']:
app.jinja_env.globals['url_for'] = url_for
if 'S3_USE_CACHE_CONTROL' and 'S3_CACHE_CONTROL' in app.config:
if app.config['S3_USE_CACHE_CONTROL'] and 'S3_CACHE_CONTROL' in app.config:
cache_control_header = app.config['S3_CACHE_CONTROL']
app.config['S3_HEADERS']['Cache-Control'] = cache_control_header

0 comments on commit c07be84

Please sign in to comment.