mirror of
https://github.com/wassname/flask-s3.git
synced 2026-08-11 11:18:38 +08:00
Check for S3_USE_CACHE_CONTROL boolean
This commit is contained in:
+1
-1
@@ -226,6 +226,6 @@ class FlaskS3(object):
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user