MDL-70120 assignfeedback_editpdf: Stamp files should be cached
authorBrendan Heywood <brendan@catalyst-au.net>
Wed, 4 Nov 2020 11:42:21 +0000 (22:42 +1100)
committerBrendan Heywood <brendan@catalyst-au.net>
Wed, 4 Nov 2020 11:42:21 +0000 (22:42 +1100)
mod/assign/feedback/editpdf/lib.php

index 701d394..8505f17 100644 (file)
@@ -67,7 +67,7 @@ function assignfeedback_editpdf_pluginfile(
         $options['cacheability'] = 'public';
         $options['immutable'] = true;
 
-        send_stored_file($file, 0, 0, true, $options);
+        send_stored_file($file, null, 0, false, $options);
     }
 
     if ($context->contextlevel == CONTEXT_MODULE) {