I've tested code form Symfony Docs in Symfony 3.2 and it was everything good, but cache doesn't work in 3.4.8.
Of courese I want to use Symfony Reverse Proxy.
My app_dev.php
$kernel = new AppKernel('dev', true);
if (PHP_VERSION_ID < 70000) {
$kernel->loadClassCache();
}
$kernel = new AppCache($kernel);
My action look's like this:
public function indexAction(Request $request)
{
// [...]
$response = $this->render('base.html.twig');
$response->setSharedMaxAge(3600);
return $response;
}
Am I missing something, that isn't nessesery in Symfony 3.2?