Difference between revisions of "Resources FAQ"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Resources FAQ.

(see also discussion link)
Line 2: Line 2:
  
 
Check the force download box on the update page. (This work-around is necessary because of the way IE7 handles PDF files.)  
 
Check the force download box on the update page. (This work-around is necessary because of the way IE7 handles PDF files.)  
 +
 +
==How can I stop uploaded files from being cached when I update them?==
 +
 +
By default, Moodle adds a "cache-control" header to all files that is sends. The default period is 24 hours. You can reduce this or eliminate it entirely (set to zero) by adding the following line to your config.php (default value shown).
 +
 +
    $CFG->filelifetime = 86400;
  
 
==See also==
 
==See also==

Revision as of 15:17, 5 November 2008

How can I enable students using IE7 to view PDF files?

Check the force download box on the update page. (This work-around is necessary because of the way IE7 handles PDF files.)

How can I stop uploaded files from being cached when I update them?

By default, Moodle adds a "cache-control" header to all files that is sends. The default period is 24 hours. You can reduce this or eliminate it entirely (set to zero) by adding the following line to your config.php (default value shown).

   $CFG->filelifetime = 86400;

See also

Using Moodle forum discussions: