mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-06 07:16:03 +02:00
if download GET parameter contains a decent cache-buster, we allow caching for 10 days
This commit is contained in:
@ -638,6 +638,11 @@ class WebDAV extends HTTP_WebDAV_Server_Filesystem
|
|||||||
{
|
{
|
||||||
$_SERVER['ORIG_REQUEST_URI'] = $_SERVER['REQUEST_URI'];
|
$_SERVER['ORIG_REQUEST_URI'] = $_SERVER['REQUEST_URI'];
|
||||||
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],0,$this->force_download);
|
$_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();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
@ -902,4 +907,4 @@ class WebDAV extends HTTP_WebDAV_Server_Filesystem
|
|||||||
}
|
}
|
||||||
return parent::PUT($options);
|
return parent::PUT($options);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user