improve: cache tool icons by setting max-age HTTP header and enable gzip compression SVG icons from backend (#2971)
This commit is contained in:
@@ -5,6 +5,12 @@ def init_app(app: Flask):
|
||||
if app.config.get('API_COMPRESSION_ENABLED', False):
|
||||
from flask_compress import Compress
|
||||
|
||||
app.config['COMPRESS_MIMETYPES'] = [
|
||||
'application/json',
|
||||
'image/svg+xml',
|
||||
'text/html',
|
||||
]
|
||||
|
||||
compress = Compress()
|
||||
compress.init_app(app)
|
||||
|
||||
|
Reference in New Issue
Block a user