mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
if download GET parameter contains a decent cache-buster, we allow caching for 10 days
This commit is contained in:
parent
63e71dc96b
commit
27f750d33b
@ -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