backend: cache static files by 1 week
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-07-05 19:17:42 +00:00
parent 17fdbe1973
commit c69117f3c5
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -11,6 +11,7 @@ def send_from_cwd(filename):
app = Flask(__name__, static_folder='frontend/dist/static', template_folder='frontend/dist')
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 604800 # 1 week
CORS(app)
db = CalibreDB()