Add asset caching
This commit is contained in:
1
app.py
1
app.py
@@ -30,6 +30,7 @@ if os.environ.get('FLASK_ENV') != 'production':
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['COMPRESS_REGISTER'] = True
|
||||
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 31536000 # 1 year
|
||||
Compress(app)
|
||||
app.config.from_pyfile('config.py')
|
||||
app.secret_key = os.environ.get('SECRET_KEY', '2a661781919643cb8a5a8bc57642d99f')
|
||||
|
||||
Reference in New Issue
Block a user