The value of lastModifier varies from browser to browser. For example, for a server writing the header:
Last-modified: Fri, 04 Jun 2010 20:41:59 GMT
Safari 4 puts out a literal string that is exactly what is found in the document header,
Fri, 04 Jun 2010 20:41:59 GMT
Firefox 3.6 and Internet Explorer 8 put out a reformatted string in local time (not sure if it’s the server’s local or the browsers local, since my server is in the same time zone).
06/04/2010 13:41:59
Is there any way to get a consistent lastModified string without doing browser sniffing? I would expect sniffing to not be resilient to change, given that lastModified output has changed before in browser history, based on posts from several years ago, and will likely change again. I prefer Safari’s method, as I would only have to know if my server’s format changed.