From 3ed13085db4a7b70d6403ecdcbffec0a6ec8ef33 Mon Sep 17 00:00:00 2001 From: Paal Joergensen <pal.jorgensen@gmail.com> Date: Wed, 19 Oct 2016 09:25:59 +0200 Subject: [PATCH] Fixed caching bug [HFP-104] --- ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ajax.php b/ajax.php index b7c960c..1e790b0 100644 --- a/ajax.php +++ b/ajax.php @@ -71,7 +71,7 @@ switch($action) { } hvp_restrict_library($library_id, $restrict); - header('Cache-Control', 'no-cache'); + header('Cache-Control: no-cache'); header('Content-Type: application/json'); echo json_encode(array( 'url' => (new moodle_url('/mod/hvp/ajax.php', array( @@ -110,7 +110,7 @@ switch($action) { $library = hvp_get_library_upgrade_info($library[0], $library[1], $library[2]); - header('Cache-Control', 'no-cache'); + header('Cache-Control: no-cache'); header('Content-Type: application/json'); print json_encode($library); @@ -136,7 +136,7 @@ switch($action) { if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') { $library_id = required_param('library_id', PARAM_INT); $out = hvp_content_upgrade_progress($library_id); - header('Cache-Control', 'no-cache'); + header('Cache-Control: no-cache'); header('Content-Type: application/json'); print json_encode($out); } else { -- GitLab