Skip to content

Commit

Permalink
Setting cache-control as private to avoid issue rospdf#176
Browse files Browse the repository at this point in the history
  • Loading branch information
savioret committed Jun 13, 2023
1 parent a7f9b8d commit 57d3186
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2737,6 +2737,7 @@ protected function stream($options = '')

header('Content-Type: application/pdf');
header('Content-Length: '.$length);
header('Cache-Control: private');
$fileName = (isset($options['Content-Disposition']) ? $options['Content-Disposition'] : 'file.pdf');
if (isset($options['download']) && $options['download'] == 1) {
$attached = 'attachment';
Expand Down

0 comments on commit 57d3186

Please sign in to comment.