Add asset caching

This commit is contained in:
Peter Stockings
2026-02-03 23:36:58 +11:00
parent 2e79ad1b8b
commit ec8d7f6825

1
app.py
View File

@@ -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')