In my Symfony2 web app, I need to set up Vary HTTP header for User-Agent, like in this link,
https://developers.google.com/webmasters/smartphone-sites/details?hl=en
Does any know how to do this ?
In my Symfony2 web app, I need to set up Vary HTTP header for User-Agent, like in this link,
https://developers.google.com/webmasters/smartphone-sites/details?hl=en
Does any know how to do this ?
Copyright © 2021 Jogjafile Inc.
You can use the
@Cache
annotation, or you can set headers directly on aResponse
object.http://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/annotations/cache.html