I have a sitemap.xml page which is dynamically generated by my Symfony application. I also use Varnish. I would like to know if it's a good idea to cache the sitemap.xml page or if it's useless?
Thanks.
I have a sitemap.xml page which is dynamically generated by my Symfony application. I also use Varnish. I would like to know if it's a good idea to cache the sitemap.xml page or if it's useless?
Thanks.
How often will it change? If it isn't changing on a minute-by-minute basis, but is being read often (and hence being generated often), then it's probably worth caching it. You may want some code to generate it offline and then invalidate the Varnish cache if a particular timeliness for a newly update file is required.