mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-23 16:22:10 +01:00
Merge branch '6.4' into 7.3
* 6.4: Split cache examples
This commit is contained in:
@@ -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
|
||||
{
|
||||
// ...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user