Commit 918ae503 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

add caching for succesfull requests and README for dev

parent 66ae10ca
This is a web application based on Spot. It offers some
tools to rewrite/study/compare/translate LTL formula.
It's made of
- a server-side API written in Python using Spot's Python
- a client-side web application written using ReactJS,
and calling that API.
To start developping, first launch a server on localhost:5000 with
% server/
then launch a client with
% cd client
% npm run start
Now any save to or client/src/LtlApp.js will cause these
components to reload automatically.
from flask import Flask, request
from flask import __version__ as flask_version
from flask.json import jsonify
......@@ -539,6 +541,17 @@ def compare(ltlformula, method='GET'):
return jsonify(result)
def add_header(response):
if response.status_code == 200:
response.cache_control.max_age = 3600
return response
if __name__ == '__main__':, use_reloader=True, use_debugger=False)
# import os
# import sys
Supports Markdown
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