hasAllowedNoCacheParameter example

return true;
        }

        if ($response->isRedirect()) {
            return true;
        }

        if ($this->hasMatchingNoCacheCookie($request$shopId)) {
            return true;
        }

        if ($this->hasAllowedNoCacheParameter($request)) {
            return true;
        }

        $controller = $this->cacheRouteGeneration->getControllerRoute($request);

        return $controller === 'widgets/checkout' && (!empty($this->session->offsetGet('sBasketQuantity')) || !empty($this->session->offsetGet('sNotesQuantity')));
    }

    /** * Returns array of nocache-tags for given $controllerName * * <code> * array ( * 0 => 'detail-1', * 1 => 'checkout-1', * ) * </code> * * @param int $shopId * * @return array<string> */
Home | Imprint | This part of the site doesn't use cookies.