]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/style.php
Merge pull request #10986 from annando/issue-10983
[friendica.git] / view / theme / frio / style.php
index c60fb7a8f466754f8d2a40b33f644f7fad3ce383..f68f4c291ea313c1b777055a1b167140b2cf3c18 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 use Friendica\DI;
+use Friendica\Network\HTTPException\NotModifiedException;
 use Friendica\Util\Strings;
 
 require_once 'view/theme/frio/theme.php';
@@ -225,8 +226,7 @@ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && isset($_SERVER['HTTP_IF_NONE_MA
                                stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
 
        if (($cached_modified == $modified) && ($cached_etag == $etag)) {
-               header('HTTP/1.1 304 Not Modified');
-               exit();
+               throw new NotModifiedException();
        }
 }