From: Hendrik B. <nh...@us...> - 2012-07-19 22:32:39
|
Update of /cvsroot/arianne/stendhal_website In directory vz-cvs-4.sog:/tmp/cvs-serv7327 Modified Files: index.php Log Message: flag anonymous pages as publically cachable even on https Index: index.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/index.php,v retrieving revision 1.203 retrieving revision 1.204 diff -C2 -d -r1.203 -r1.204 *** index.php 30 Jun 2012 15:46:20 -0000 1.203 --- index.php 19 Jul 2012 22:32:37 -0000 1.204 *************** *** 24,27 **** --- 24,33 ---- ini_set('session.cookie_secure', 1); session_start(); + + if ((!isset($_SESSION)) || (!isset($_SESSION['account']))) { + header('cache-control: public', true); + header('Pragma: cache'); + } + } else { if (!STENDHAL_SECURE_SESSION) { *************** *** 32,35 **** --- 38,42 ---- + /* * Open connection to both databases. |