michalc Posted October 2, 2008 Share Posted October 2, 2008 Hi, I've just written a script to generate a Google XML Sitemap for an (admittedly small) site. HTTP header-wise, all it does is set the mime type as "application/xml". However, I have realised that the sitemap itself does not send a last-modified date, or respond appropriately to if-modified-since request. I was wondering what people's opinion on this is. Should I bother setting up the last-modified date at the most recent date in the Sitemap, and setup an if-modified-since response for the Sitemap itself? Michal. Link to comment https://forums.phpfreaks.com/topic/126779-dynamic-xml-sitemap-should-use-last-modified-and-if-modified-since/ Share on other sites More sharing options...
amites Posted October 2, 2008 Share Posted October 2, 2008 or just generate a static site map and set it to run the script each time you change something as they say KISS Link to comment https://forums.phpfreaks.com/topic/126779-dynamic-xml-sitemap-should-use-last-modified-and-if-modified-since/#findComment-655854 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.