]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix expire header for media player
authorRobin Appelman <icewind1991@gmail.com>
Tue, 16 Aug 2011 12:34:42 +0000 (14:34 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Tue, 16 Aug 2011 12:35:05 +0000 (14:35 +0200)
apps/media/ajax/api.php

index 46f18b848e6481b044ad180fbd876aadf02c3cb6..a9bd4f745af18338cbad0ebf12a1e7062d255ee9 100644 (file)
@@ -129,8 +129,7 @@ if($arguments['action']){
                        // calc the string in GMT not localtime and add the offset
                        $expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
                        //output the HTTP header
-                       Header($expire);
-                       header('Expires: 0');
+                       header($expire);
                        header('Cache-Control: max-age=3600, must-revalidate');
                        header('Pragma: public');
                        header('Accept-Ranges: bytes');