]> git.mjollnir.org Git - moodle.git/commitdiff
Different format on headers for text downloads to improve performance on
authormoodler <moodler>
Thu, 27 Nov 2003 14:52:22 +0000 (14:52 +0000)
committermoodler <moodler>
Thu, 27 Nov 2003 14:52:22 +0000 (14:52 +0000)
more browsers

mod/quiz/report/simplestat/report.php

index 00b278736c086076ba4d7e6590e7e975fb08b293..acbf0e4d5559b041514bd6a78fbaebcee18a37a7 100644 (file)
@@ -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