I would like to disable cache for dynamic content and wonder if mara should do that per default:
# No cacheing at all for API endpoints.
@app.after_request
def add_header(response):
# response.cache_control.no_store = True
if 'Cache-Control' not in response.headers:
response.headers['Cache-Control'] = 'no-store'
return response
I would like to disable cache for dynamic content and wonder if mara should do that per default:
(from https://stackoverflow.com/a/37331139/1380673)