]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
Add Doxygen headers for multiple function in App
[friendica.git] / src / Module / Proxy.php
index bf6d6b6d03e5e7559997f51dad73a8765ddab825..ccd00c6040fb8be879ba3e9fef2bdae6e88cf3de 100644 (file)
@@ -45,7 +45,7 @@ class Proxy extends BaseModule
                 *
                 * Question: Do we really need these three methods?
                 */
-               if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
+               if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
                        header('HTTP/1.1 304 Not Modified');
                        header('Last-Modified: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
                        header('Etag: ' . $_SERVER['HTTP_IF_NONE_MATCH']);