Skip to content

Commit

Permalink
Merge pull request PUGX#40 from agiuliano/master
Browse files Browse the repository at this point in the history
Response now is http-cached
  • Loading branch information
liuggio committed Jun 5, 2013
2 parents e3abbb8 + 3490d59 commit 67eb88c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/PUGX/BadgeBundle/Controller/BadgeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Symfony\Component\HttpFoundation\StreamedResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use PUGX\BadgeBundle\Exception\UnexpectedValueException;

/**
Expand Down Expand Up @@ -48,6 +49,7 @@ class BadgeController extends ContainerAware
* }
* )
* @Method({"GET"})
* @Cache(maxage="3600", smaxage="3600", public=true)
*
* @return StreamedResponse
*/
Expand Down Expand Up @@ -91,6 +93,7 @@ public function downloadsAction($repository, $type = 'total')
* }
* )
* @Method({"GET"})
* @Cache(maxage="3600", smaxage="3600", public=true)
*
* @return StreamedResponse
*/
Expand Down
2 changes: 1 addition & 1 deletion src/PUGX/BadgeBundle/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PageController extends ContainerAware
* )
* @Method({"GET"})
* @Template
* @Cache(smaxage="3600")
* @Cache(maxage="3600", smaxage="3600", public=true)
* @return Response
*/
public function homeAction()
Expand Down

0 comments on commit 67eb88c

Please sign in to comment.