backend: cache static files by 1 week
continuous-integration/drone/push Build is passing Details

master
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
1 changed files with 1 additions and 0 deletions

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()