Checks whether the method is cacheable or not.
https://tools.ietf.org/html/rfc7231#section-4.2.3
public function isMethodCacheable() : bool { return \in_array($this->getMethod(), [ 'GET', 'HEAD', ]); }