| @@ 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 | ||
| @@ 1698-1701 (lines=4) @@ | ||
| 1695 | header('Content-Disposition: ' . $disposition . '; filename="' . $utf8name . '"'); |
|
| 1696 | ||
| 1697 | // If this has an "image extension" - but isn't actually an image - then ensure it isn't cached cause of silly IE. |
|
| 1698 | if (!isset($_REQUEST['image']) && in_array($file_ext, array('gif', 'jpg', 'bmp', 'png', 'jpeg', 'tiff'))) |
|
| 1699 | header('Cache-Control: no-cache'); |
|
| 1700 | else |
|
| 1701 | header('Cache-Control: max-age=' . (525600 * 60) . ', private'); |
|
| 1702 | ||
| 1703 | header('Content-Length: ' . filesize($filename)); |
|
| 1704 | ||