public function onCacheResponse(RequestInterface $request, ResponseInterface $response, $fromCache, $cacheItem)
    {
        return $response->withHeader($this->headerName, $fromCache ? 'HIT' : 'MISS');
    }
public function onCacheResponse(RequestInterface $request, ResponseInterface $response, $fromCache, $cacheItem)
    {
        return $response->withHeader($this->headerName, $fromCache ? 'HIT' : 'MISS');
    }
public function onCacheResponse ( RequestInterface $ request , ResponseInterface $ response , $ fromCache , $ cacheItem ) { return $ response -> withHeader ( $ this -> headerName , $ fromCache ? 'HIT' : 'MISS' ) ; }
Called before the cache plugin returns the response, with information on whether that response came from cache.

@param RequestInterface        $request
@param ResponseInterface       $response
@param bool                    $fromCache Whether the `$response` was from the cache or not.
Note that checking `$cacheItem->isHit()` is not sufficent to determine this.
@param CacheItemInterface|null $cacheItem

@return ResponseInterface
Called before the cache plugin returns the response with information on whether that response came from cache .