Skip to the content
Documentation

HttpCache: comparison of v.8 vs v.9

No ratings yet

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
language php
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
all true

Comments

Add a comment

Comments are read by a moderator before they appear.