]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/style.php
Update translation fie after adding a string
[friendica.git] / view / theme / frio / style.php
index 0a69fea991fb196b8e7701b0b003382fe43d36f3..b39cef10294d96c910d51685b1ac9204794e5d90 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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();
        }
 }