Sfoglia il codice sorgente

#363 Charts not displaying with IE8 + IIS + HTTPS

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1540 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 anni fa
parent
commit
2e1c184de3
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      pages/ajax.render.php

+ 7 - 0
pages/ajax.render.php

@@ -41,6 +41,7 @@ try
 	
 	$oPage = new ajax_page("");
 	$oPage->no_cache();
+
 	
 	$operation = utils::ReadParam('operation', '');
 	$sFilter = stripslashes(utils::ReadParam('filter', '', false, 'raw_data'));
@@ -449,6 +450,12 @@ try
 		break;
 		
 		case 'open_flash_chart':
+		// Workaround for IE8 + IIS + HTTPS
+		// See TRAC #363, fix described here: http://forums.codecharge.com/posts.php?post_id=97771
+		$oPage->add_header("Expires: Fri, 17 Jul 1970 05:00:00 GMT");
+		$oPage->add_header("Cache-Control: cache, must-revalidate");
+		$oPage->add_header("Pragma: public");
+
 		$oPage->SetContentType('application/json');
 		$aParams = utils::ReadParam('params', array());
 		if ($sFilter != '')