Commit 0d5d6bd7 authored by Jérome Perrin's avatar Jérome Perrin

Do not set cache headers for static files

Because this server is intended to be used for development
parent fe2fed44
......@@ -8,11 +8,14 @@ from flask import request
from dream.simulation.LineGenerationJSON import main as simulate_line_json
app = Flask(__name__)
# Serve static file with no cache
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
@app.route("/")
def front_page():
return redirect(url_for('static', filename='index.html'))
@app.route("/runSimulation", methods=["POST", "OPTIONS"])
def runSimulation():
parameter_dict = request.json['json']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment