From c69117f3c5b427fa9759125de77ae61c7d73ebe8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 5 Jul 2019 19:17:42 +0000 Subject: [PATCH] backend: cache static files by 1 week --- mangareader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mangareader.py b/mangareader.py index d61039e..c5c6af5 100755 --- a/mangareader.py +++ b/mangareader.py @@ -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()