]> git.mxchange.org Git - friendica.git/commitdiff
restore photo cache
authorFriendika <info@friendika.com>
Sat, 1 Oct 2011 00:47:33 +0000 (17:47 -0700)
committerFriendika <info@friendika.com>
Sat, 1 Oct 2011 00:47:33 +0000 (17:47 -0700)
boot.php
mod/photo.php

index 85b571c828392b6a7ce2868c062d7759f7b23055..59eeb46435b12ca3af3dcb53cb0de845e07135f9 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -8,7 +8,7 @@ require_once("include/pgettext.php");
 require_once('include/nav.php');
 
 define ( 'FRIENDIKA_PLATFORM',     'Free Friendika');
-define ( 'FRIENDIKA_VERSION',      '2.3.1119' );
+define ( 'FRIENDIKA_VERSION',      '2.3.1120' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1093      );
 
index 3994620f89cfcd1e3fb1253cdfa7bb9bf1290097..fcc75a513fee302b901b173a4cc912019890f4bc 100644 (file)
@@ -129,6 +129,8 @@ function photo_init(&$a) {
        }
 
        header("Content-type: image/jpeg");
+       header("Expires: " . gmdate("D, d M Y H:i:s", time() + (3600*24)) . " GMT";
+       header("Cache-Control: max-age=" . (3600*24));
        echo $data;
        killme();
        // NOTREACHED