| @@ 1668-1671 (lines=4) @@ | ||
| 1665 | header('Content-Disposition: ' . $disposition . '; filename="' . $utf8name . '"'); |
|
| 1666 | ||
| 1667 | // If this has an "image extension" - but isn't actually an image - then ensure it isn't cached cause of silly IE. |
|
| 1668 | if (!isset($_REQUEST['image']) && in_array($file_ext, array('gif', 'jpg', 'bmp', 'png', 'jpeg', 'tiff'))) |
|
| 1669 | header('Cache-Control: no-cache'); |
|
| 1670 | else |
|
| 1671 | header('Cache-Control: max-age=' . (525600 * 60) . ', private'); |
|
| 1672 | ||
| 1673 | header('Content-Length: ' . filesize($filename)); |
|
| 1674 | ||
| @@ 277-281 (lines=5) @@ | ||
| 274 | header('Content-Disposition: ' . $disposition . '; filename="' . $utf8name . '"'); |
|
| 275 | ||
| 276 | // If this has an "image extension" - but isn't actually an image - then ensure it isn't cached cause of silly IE. |
|
| 277 | if (!isset($_REQUEST['image']) && in_array($file['fileext'], array('gif', 'jpg', 'bmp', 'png', 'jpeg', 'tiff'))) |
|
| 278 | header('Cache-Control: no-cache'); |
|
| 279 | ||
| 280 | else |
|
| 281 | header('Cache-Control: max-age=' . (525600 * 60) . ', private'); |
|
| 282 | ||
| 283 | header('Content-Length: ' . filesize($file['filePath'])); |
|
| 284 | ||