diff --git a/http_cache/cache_vary.rst b/http_cache/cache_vary.rst index d4e1dcbc83e..61201f18e04 100644 --- a/http_cache/cache_vary.rst +++ b/http_cache/cache_vary.rst @@ -41,8 +41,13 @@ attribute:: // ... #[Cache(vary: ['Accept-Encoding'])] + public function foo(): Response + { + // ... + } + #[Cache(vary: ['Accept-Encoding', 'User-Agent'])] - public function index(): Response + public function bar(): Response { // ... }