HttpCache: comparison of v.8 vs v.9
Versions Compared
Old Version 8
changes.mady.by.user Dominika Kurek
Saved on Jan 22, 2016
compared with
New Version Current
changes.mady.by.user Dominika Kurek
Saved on Feb 12, 2016
Key
- This line was added.
- This line was removed.
- Formatting was changed.
...
| Code Block | ||
|---|---|---|
|
||
use Symfony\Component\HttpFoundation\Response;
// Inside a controller action
// Tells proxy configured to support this header to take the rights of a user (user hash) into account for the cache
$response = new Response();
$response->setVary('X-User-Hash');
|
| Children Display | ||
|---|---|---|
|
Comments
Add a comment