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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -