diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-16 14:34:42 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-16 14:35:05 +0200 |
commit | fd74e43afaf50668530bcd9058bde641cc0a205b (patch) | |
tree | b63caf2df37c4831c19eb3f0c6f480dbb0f0443a /apps/media | |
parent | c07896651119dec79dbfbd9a05e5254aa407f49d (diff) | |
download | nextcloud-server-fd74e43afaf50668530bcd9058bde641cc0a205b.tar.gz nextcloud-server-fd74e43afaf50668530bcd9058bde641cc0a205b.zip |
fix expire header for media player
Diffstat (limited to 'apps/media')
-rw-r--r-- | apps/media/ajax/api.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index 46f18b848e6..a9bd4f745af 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -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'); |