diff --git a/lib/request.php b/lib/request.php index cb93a088172f897a1b049ee5f44aa39f06732246..d013844f08dd6bfc21bdaeff597de2c16dd09c14 100644 --- a/lib/request.php +++ b/lib/request.php @@ -52,6 +52,10 @@ class OC_Request { return($proto); } + /** + * @brief Check if this is a no-cache request + * @returns true for no-cache + */ static public function isNoCache() { if (!isset($_SERVER['HTTP_CACHE_CONTROL'])) { return false; @@ -59,6 +63,10 @@ class OC_Request { return $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache'; } + /** + * @brief Check if the requestor understands gzip + * @returns true for gzip encoding supported + */ static public function acceptGZip() { if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) { return false;