From e6073312c2d315e61645b3eafc39fc39b58a634b Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 27 Nov 2003 14:52:22 +0000 Subject: [PATCH] Different format on headers for text downloads to improve performance on more browsers --- mod/quiz/report/simplestat/report.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/quiz/report/simplestat/report.php b/mod/quiz/report/simplestat/report.php index 00b278736c..acbf0e4d55 100644 --- a/mod/quiz/report/simplestat/report.php +++ b/mod/quiz/report/simplestat/report.php @@ -135,7 +135,11 @@ class quiz_report extends quiz_default_report { /// Print header to force download header("Content-Type: application/download\n"); - header("Content-Disposition: attachment; filename=\"$course->shortname $quiz->name.txt\""); + header("Content-Disposition: attachment; filename=$course->shortname ".$quiz->name.".txt"); + header("Expires: 0"); + header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); + header("Pragma: public"); + /// Print names of all the fields -- 2.39.5