From 000e09a81ce357b4e66a9a6c055a19e1a82416e2 Mon Sep 17 00:00:00 2001 From: "arron.woods@gmail.com" Date: Tue, 22 Jan 2013 15:55:44 +0000 Subject: Cache settings on download --- library/SSRS/Object/ReportOutput.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php index b3ef658..8835dc9 100755 --- a/library/SSRS/Object/ReportOutput.php +++ b/library/SSRS/Object/ReportOutput.php @@ -8,7 +8,9 @@ class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { public function download($filename) { - header("Cache-Control: public"); + header("Cache-control: no-cache"); + header("Pragma: no-cache"); + header("Expires: -1"); header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="' . $filename . '"'); header("Content-Type: " . $this->MimeType); -- cgit v1.1