Skip to content
Snippets Groups Projects
Commit d475b02b authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Disable caches

parent 55c90d86
No related branches found
No related tags found
No related merge requests found
......@@ -2,15 +2,25 @@ from os.path import join
from flask import render_template, send_from_directory
from app import app
PLOTS_PATH = "../plots"
PLOTS = [
['dom_activity', 'dom_rates'],
['pmt_rates', 'pmt_hrv'],
['trigger_rates'],
]
['dom_activity', 'dom_rates'],
['pmt_rates', 'pmt_hrv'],
['trigger_rates'],
]
@app.after_request
def add_header(r):
"""
Disable caches.
"""
r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
r.headers["Pragma"] = "no-cache"
r.headers["Expires"] = "0"
r.headers["Cache-Control"] = "public, max-age=0"
return r
@app.route('/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment