| @@ 1615-1621 (lines=7) @@ | ||
| 1612 | ||
| 1613 | // Check whether the ETag was sent back, and cache based on that... |
|
| 1614 | $eTag = '"' . substr($_REQUEST['attach'] . $real_filename . filemtime($filename), 0, 64) . '"'; |
|
| 1615 | if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'], $eTag) !== false) |
|
| 1616 | { |
|
| 1617 | ob_end_clean(); |
|
| 1618 | ||
| 1619 | header('HTTP/1.1 304 Not Modified'); |
|
| 1620 | exit; |
|
| 1621 | } |
|
| 1622 | ||
| 1623 | // Send the attachment headers. |
|
| 1624 | header('Pragma: '); |
|
| @@ 224-230 (lines=7) @@ | ||
| 221 | ||
| 222 | // Check whether the ETag was sent back, and cache based on that... |
|
| 223 | $eTag = '"' . substr($_REQUEST['attach'] . $file['filePath'] . filemtime($file['filePath']), 0, 64) . '"'; |
|
| 224 | if (!empty($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'], $eTag) !== false) |
|
| 225 | { |
|
| 226 | ob_end_clean(); |
|
| 227 | ||
| 228 | header('HTTP/1.1 304 Not Modified'); |
|
| 229 | exit; |
|
| 230 | } |
|
| 231 | ||
| 232 | // Send the attachment headers. |
|
| 233 | header('Pragma: '); |
|