protected function setResponseHeaders(BlockInterface $block, Response $response)
    {
        if ($block && $block->getReference()) {
            if ($this->getReferenceService($block)->isEsiEnabled($block->getReference())) {
                $this->getReferenceService($block)->setResponseHeaders($block->getReference(), $response);
            } else {
                $response->setLastModified($block->getReference()->getUpdatedAt());
                $response->setPublic();
            }
        }
    }
protected function setResponseHeaders(BlockInterface $block, Response $response)
    {
        if ($block && $block->getReference()) {
            if ($this->getReferenceService($block)->isEsiEnabled($block->getReference())) {
                $this->getReferenceService($block)->setResponseHeaders($block->getReference(), $response);
            } else {
                $response->setLastModified($block->getReference()->getUpdatedAt());
                $response->setPublic();
            }
        }
    }
protected function setResponseHeaders ( BlockInterface $ block , Response $ response ) { if ( $ block && $ block -> getReference ( ) ) { if ( $ this -> getReferenceService ( $ block ) -> isEsiEnabled ( $ block -> getReference ( ) ) ) { $ this -> getReferenceService ( $ block ) -> setResponseHeaders ( $ block -> getReference ( ) , $ response ) ; } else { $ response -> setLastModified ( $ block -> getReference ( ) -> getUpdatedAt ( ) ) ; $ response -> setPublic ( ) ; } } }
Sets the response headers defined on the reference service

{@inheritdoc}
Sets the response headers defined on the reference service