()
| 183 | } |
| 184 | |
| 185 | private function getRequestCacheKey(): ?string { |
| 186 | $clientETag = $this->request->getHeader('If-None-Match'); |
| 187 | if ($clientETag === null || $clientETag === '') { |
| 188 | return null; |
| 189 | } |
| 190 | return trim($clientETag, '"'); |
| 191 | } |
| 192 | |
| 193 | private function extractCacheMetadata(array $result): array { |
| 194 | $cache = ['cacheable' => false, 'key' => null, 'notModified' => false]; |
no outgoing calls
no test coverage detected