From 2bd3e97f210dbc7a551049dc1a704c9538899588 Mon Sep 17 00:00:00 2001 From: Hugo Kerstens <hugokk@hotmail.nl> Date: Mon, 20 May 2019 22:28:46 +0200 Subject: [PATCH] Disable cache for exam source pdf --- zesje/api/exams.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zesje/api/exams.py b/zesje/api/exams.py index 83dc5347..706e7413 100644 --- a/zesje/api/exams.py +++ b/zesje/api/exams.py @@ -287,6 +287,7 @@ class ExamSource(Resource): return send_file( os.path.join(exam_dir, 'exam.pdf'), + cache_timeout=0, mimetype='application/pdf') -- GitLab