diff --git a/src/Symfony/Components/HttpKernel/Request.php b/src/Symfony/Components/HttpKernel/Request.php index 178df2b35e..e4179e6bd1 100644 --- a/src/Symfony/Components/HttpKernel/Request.php +++ b/src/Symfony/Components/HttpKernel/Request.php @@ -460,6 +460,11 @@ class Request return in_array(strtolower($this->getMethod()), array('get', 'head')); } + public function getETags() + { + return preg_split('/\s*,\s*/', $this->headers->get('if_none_match')); + } + public function isNoCache() { return $this->headers->getCacheControl()->isNoCache() || 'no-cache' == $this->headers->get('Pragma');