Microsys
  

Last Modified, Dates and Timezones in Sitemap Generator Tool

Sitemap generator will during its crawl extract last modified values from all pages in your website. The sitemapper tool checks both HTTP headers and META tags.
Help: overview | previous | next

 To see all the options available, you will have to switch off easy mode 

 With options that use a dropdown list, any [+] or [-] button next to adds or removes items in the list itself 

Sitemap Generator Last Modified Values

Our software product A1 Sitemap Generator extracts these values in one of the following ways:
  1. Checks if the webserver responds with last-modified HTTP response header:

    HTML pages: The webserver will usually generate this header for you.

    PHP example: Extract last-modified from file:
    <?php header("Last-Modified: " . gmdate("D, d M Y H:i:s", filemtime($SCRIPT_FILENAME)) . " GMT"); ?>.

    ASP example: Set hard coded last-modified:
    <% Response.AddHeader "Last-modified","Mon, 01 Jan 2000 11:22:33 GMT" %>.

    ASP.Net functions you can check documentation on:
    Response.Cache.SetLastModified(DateTime date);
    Response.Cache.SetLastModifiedFromFileDependencies();
    Response.AddFileDependancy(string filename);
  2. If no relevant HTTP reponse header, the page is checked for last-modified HTML meta tag.
  3. If still no last modified value has been retrieved, the URL path will be analyzed for date like patterns, e.g. yyyy/mm/dd.


Understand Timezone and Timestamps

You can always view the last-modified values retrieved in page data.

last modified timestamp for URL

Note: The server timezone will often be placed and configured to be different from your timezone. The date and time the server returns in last-modified depends on the server computer clock. This again depends on how the server timezone and clock has been configured.


Remove LastMod Information in XML Sitemaps

  • Navigate to: Create sitemap | XML sitemap options | Override calculated values.
  • Enable Override LastMod with chosen date/time option.
  • Click Reset button until date shown is 1899.
This help page is maintained by

As one of the lead developers, his hands have touched most of the code in the software from Microsys.

If you email any questions, chances are that he will be the one answering them.
A1 Sitemap GeneratorAbout A1 Sitemap Generator

Build all kinds of sitemaps including text, visual HTML / CSS, RSS, XML, image, video, news and mobile for all your websites no matter the platform they use.
     
Share this page with friends   LinkedIn   Twitter   Facebook   Pinterest   Google+   YouTube  
 © Copyright 1997-2016 Microsys
 Usage of this website constitutes an accept of our legal, privacy and cookies information.