diff --git a/Web/Presenters/AuthPresenter.php b/Web/Presenters/AuthPresenter.php index 599efe8f..ac5a30c2 100644 --- a/Web/Presenters/AuthPresenter.php +++ b/Web/Presenters/AuthPresenter.php @@ -1,14 +1,8 @@ notFound(); if(isset($_SERVER["HTTP_IF_NONE_MATCH"])) - exit(header("HTTP/1.1 304 Not Modified")); - - header("Content-Type: " . mime_content_type($path)); - header("Content-Size: " . filesize($path)); - header("Cache-Control: public, max-age=1210000"); - header("X-Accel-Expires: 1210000"); - header("ETag: W/\"" . hash_file("snefru", $path) . "\""); - - readfile($path); - exit; + exit(header("HTTP/1.1 304 Not Modified")); + + header("Content-Type: " . mime_content_type($path)); + header("Content-Size: " . filesize($path)); + header("Cache-Control: public, max-age=1210000"); + header("X-Accel-Expires: 1210000"); + header("ETag: W/\"" . hash_file("snefru", $path) . "\""); + + readfile($path); + exit; } } diff --git a/Web/Presenters/NotesPresenter.php b/Web/Presenters/NotesPresenter.php index d88c6365..2eb75f91 100644 --- a/Web/Presenters/NotesPresenter.php +++ b/Web/Presenters/NotesPresenter.php @@ -1,7 +1,6 @@