diff --git a/web/web.py b/web/web.py index 3eea61b..c5981dd 100644 --- a/web/web.py +++ b/web/web.py @@ -41,5 +41,10 @@ def page_sendGraph(): else: return 'Error: %s' % ret +@app.after_request +def add_header(response): + response.cache_control.max_age = 300 + return response + if __name__ == '__main__': app.run(host='localhost', port=3000)