Skip to content

Commit

Permalink
Merge pull request #9 from talis/add-no-cache-headers
Browse files Browse the repository at this point in the history
Adding no-cache headers to launch.php
  • Loading branch information
timhodson committed Dec 8, 2015
2 parents 7d8d237 + 6df9022 commit 9d53344
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
File renamed without changes.
4 changes: 4 additions & 0 deletions 2.x-activity-module/mod/aspirelists/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,8 @@ function xmldb_aspirelists_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2015092900, 'aspirelists');
}

if ($oldversion < 2015112400){
upgrade_mod_savepoint(true, 2015112400, 'aspirelists');
}

}
5 changes: 5 additions & 0 deletions 2.x-activity-module/mod/aspirelists/launch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
require_once($CFG->dirroot.'/mod/lti/lib.php');
require_once($CFG->dirroot.'/mod/lti/locallib.php');

// make sure that this launch.php page is not cached by any proxies.
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Thu, 01 Dec 1994 16:00:00 GMT");
header("Pragma: no-cache");

$id = required_param('id', PARAM_INT); // Course Module ID

$cm = get_coursemodule_from_id('aspirelists', $id, 0, false, MUST_EXIST);
Expand Down
2 changes: 1 addition & 1 deletion 2.x-activity-module/mod/aspirelists/version.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
defined('MOODLE_INTERNAL') || die();

$module->version = 2015092900;
$module->version = 2015112400;
$module->requires = 2012062507; // See http://docs.moodle.org/dev/Moodle_Versions
$module->cron = 0;
$module->component = 'mod_aspirelists';
Expand Down

0 comments on commit 9d53344

Please sign in to comment.