mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
if download GET parameter contains a decent cache-buster, we allow caching for 10 days
This commit is contained in:
parent
059cbfff55
commit
4a1cdee275
@ -638,6 +638,11 @@ class WebDAV extends HTTP_WebDAV_Server_Filesystem
|
||||
{
|
||||
$_SERVER['ORIG_REQUEST_URI'] = $_SERVER['REQUEST_URI'];
|
||||
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],0,$this->force_download);
|
||||
// if download GET parameter contains a decent cache-buster, we allow caching for 10 days
|
||||
if (strlen($_GET['download']) >= 8)
|
||||
{
|
||||
Api\Session::cache_control(864000);
|
||||
}
|
||||
}
|
||||
parent::__construct();
|
||||
}
|
||||
@ -902,4 +907,4 @@ class WebDAV extends HTTP_WebDAV_Server_Filesystem
|
||||
}
|
||||
return parent::PUT($options);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user