backend: cache static files by 1 week
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
17fdbe1973
commit
c69117f3c5
|
@ -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()
|
||||
|
|
Reference in a new issue