protected function configureSharedCache(Response $response, array $tags = [], $smaxage = null)
    {
        if (!empty($tags)) {
            $this->get('ekyna_core.cache.tag_manager')->addTags($tags);
        }
        $smaxage = intval($smaxage);
        if (0 >= $smaxage) {
            $smaxage = $this->container->getParameter('ekyna_core.cache_config')['default_smaxage'];
        }
        return $response->setSharedMaxAge($smaxage);
    }