From ecfed72b7665dbc43e708ded8e9a8dde83b598d6 Mon Sep 17 00:00:00 2001 From: vicwolrocket <108889461+vixtordev@users.noreply.github.com> Date: Mon, 23 Jan 2023 19:15:00 +0200 Subject: [PATCH] Update views.py --- flaskcode/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaskcode/views.py b/flaskcode/views.py index 71a6acb..6209afe 100644 --- a/flaskcode/views.py +++ b/flaskcode/views.py @@ -18,7 +18,7 @@ def resource_data(file_path): file_path = os.path.join(g.flaskcode_resource_basepath, file_path) if not (os.path.exists(file_path) and os.path.isfile(file_path)): abort(404) - response = send_file(file_path, mimetype='text/plain', cache_timeout=0) + response = send_file(file_path, mimetype='text/plain', max_age=0) mimetype, encoding = mimetypes.guess_type(file_path, False) if mimetype: response.headers.set('X-File-Mimetype', mimetype)