openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6e4ef904a55984c429668b23004e0f8730ae7c3f
parent 4b50cfa4402350373f0c042734203a89140156e5
Author: Jan Dankert <devnull@localhost>
Date:   Wed,  8 Nov 2017 00:16:10 +0100

Expires-Header mit aktueller Zeit senden.

Diffstat:
action/Action.class.php | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/action/Action.class.php b/action/Action.class.php @@ -597,10 +597,12 @@ class Action if ( ! $conf['cache']['conditional_get'] ) return; + $expires = substr(date('r',time()-date('Z')),0,-5).'GMT'; $lastModified = substr(date('r',$time -date('Z')),0,-5).'GMT'; $etag = '"'.md5($lastModified).'"'; // Header senden + header('Expires: ' .$expires ); header('Last-Modified: '.$lastModified ); header('ETag: ' .$etag );