diff options
Diffstat (limited to 'core/Visualization/Chart.php')
-rw-r--r-- | core/Visualization/Chart.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/Visualization/Chart.php b/core/Visualization/Chart.php index c795522d8d..9efd164aa9 100644 --- a/core/Visualization/Chart.php +++ b/core/Visualization/Chart.php @@ -10,6 +10,9 @@ * @package Piwik */ +// no direct access +defined('PIWIK_INCLUDE_PATH') or die; + /** * @see libs/open-flash-chart/php-ofc-library/open-flash-chart.php * @link http://teethgrinder.co.uk/open-flash-chart-2/ @@ -125,12 +128,8 @@ abstract class Piwik_Visualization_Chart implements Piwik_iView public function render() { - if(Piwik_Url::getCurrentScheme() == 'https' || - Zend_Registry::get('config')->General->reverse_proxy) - { - @header("Pragma: "); - @header("Cache-Control: must-revalidate"); - } + @header("Pragma: "); + @header("Cache-Control: no-store, must-revalidate"); return $this->chart->toPrettyString(); } |