Skip to content

Commit

Permalink
Merge pull request #46 from jinfollc/readme-update
Browse files Browse the repository at this point in the history
Added sendHeaders for compatibility with https connections and IE<9
  • Loading branch information
liuggio committed Aug 13, 2013
2 parents 85d5155 + 349b215 commit 8ddb983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -161,9 +161,10 @@ class DefaultController extends Controller
$response->headers->set('Content-Type', 'text/vnd.ms-excel; charset=utf-8');
$response->headers->set('Content-Disposition', 'attachment;filename=stdream2.xls');

// If you are using a https connection, you have to set those two headers for compatibility with IE <9
// If you are using a https connection, you have to set those two headers and use sendHeaders() for compatibility with IE <9
$response->headers->set('Pragma', 'public');
$response->headers->set('Cache-Control', 'maxage=1');
$response->sendHeaders();
return $response;
}
}
Expand Down

0 comments on commit 8ddb983

Please sign in to comment.