commit 9225fb7fb53146f4c07d434dde08a4b716771226
parent 4c2550dafe0a0df144b89daec22c0424242ee474
Author: Jan Dankert <devnull@localhost>
Date: Tue, 23 Oct 2012 02:46:37 +0200
Expires-Header setzen.
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/action/Action.class.php b/action/Action.class.php
@@ -370,10 +370,8 @@ class Action
if ( is_object( $db ) )
$db->commit();
- // Ablaufzeit für den Inhalt ist schwer zu ermitteln.
- // Nicht setzen.
- //$expires = substr(gmdate('r'),0,-5).'GMT';
- //header('Expires: ' .$expires );
+ // Ablaufzeit für den Inhalt auf aktuelle Zeit setzen.
+ header('Expires: '.substr(date('r',time()-date('Z')),0,-5).'GMT',false );
header('X-Content-Security-Policy: '.'allow *; script-src \'self\'; options \'inline-script\'');