symfony - Symfony2 SetSharedMaxAge HTTP caching -
this have:
public function indexaction() { $response=new response(); $response= $this->render('ratingbundle:default:index.html.twig'); $response->setpublic(true); $response->setsharedmaxage(15000); return $response; }
what's wrong it?
when check app env response header see
age:247 cache-control:max-age=0, must-revalidate=0, public, s-maxage=15000
but when check in browser.. see again age 0 loaded again right?
how can set public all?
Comments
Post a Comment