<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: If-Modified-Since date formats in Firefox and IE7</title>
	<atom:link href="http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/</link>
	<description>Working nights with the thief of time</description>
	<lastBuildDate>Sun, 01 Jan 2012 17:42:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sean</title>
		<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/comment-page-1/#comment-2854</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lolyco.com/sean/?p=36#comment-2854</guid>
		<description>Thanks, Spenser. In retrospect, it&#039;s not surprising at all. The If-Modified-Since technique (for example) is obviously more robust and more efficient if all servers use the same time standard. I think my surprise had more to do with my own ignorance of time standards and the idea that such an important standard should be based on a location &#039;just up the road&#039; from where I was born!</description>
		<content:encoded><![CDATA[<p>Thanks, Spenser. In retrospect, it&#8217;s not surprising at all. The If-Modified-Since technique (for example) is obviously more robust and more efficient if all servers use the same time standard. I think my surprise had more to do with my own ignorance of time standards and the idea that such an important standard should be based on a location &#8216;just up the road&#8217; from where I was born!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spenser</title>
		<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/comment-page-1/#comment-2853</link>
		<dc:creator>spenser</dc:creator>
		<pubDate>Tue, 23 Jun 2009 04:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lolyco.com/sean/?p=36#comment-2853</guid>
		<description>There is a very good reason for the use of GMT. It is unambiguous, even when countries or regions decide to unadvisedly and unilaterally change the rules for calculating daylight savings time. For those who look at GMT regularly, they soon get the hang of making the required mental adjustment for timezone offsets as they browse logs.</description>
		<content:encoded><![CDATA[<p>There is a very good reason for the use of GMT. It is unambiguous, even when countries or regions decide to unadvisedly and unilaterally change the rules for calculating daylight savings time. For those who look at GMT regularly, they soon get the hang of making the required mental adjustment for timezone offsets as they browse logs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/comment-page-1/#comment-158</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Thu, 17 Jul 2008 07:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lolyco.com/sean/?p=36#comment-158</guid>
		<description>Thanks very much for that pointer Gareth - that put me on the right path. My server was indeed sending out dates in a funky format - the Date.toString() format! It&#039;s close to the asctime() format mentioned in &lt;a href=&quot;http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#DateFormats&quot; rel=&quot;nofollow&quot;&gt;the IETF&#039;s draft HTTP/1.0 spec&lt;/a&gt;, but not quite the same.

One last wrinkle that surprised me was the insistence on GMT:
&lt;blockquote&gt;All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception.&lt;/blockquote&gt;

I&#039;ve re-coded the If-modified-since behaviour of my webserver. Now it follows IETF&#039;s recommendation in &lt;a href=&quot;http://www.ietf.org/rfc/rfc1123.txt&quot; rel=&quot;nofollow&quot;&gt;RFC1123&lt;/a&gt;&#039;s Robustness Principle:
&lt;blockquote&gt;&quot;Be liberal in what you accept, and
conservative in what you send&quot;&lt;/blockquote&gt;

The non-IE browsers I was using must be designed along the lines of &quot;When in Rome, do what the Romans do&quot;!</description>
		<content:encoded><![CDATA[<p>Thanks very much for that pointer Gareth &#8211; that put me on the right path. My server was indeed sending out dates in a funky format &#8211; the Date.toString() format! It&#8217;s close to the asctime() format mentioned in <a href="http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#DateFormats" rel="nofollow">the IETF&#8217;s draft HTTP/1.0 spec</a>, but not quite the same.</p>
<p>One last wrinkle that surprised me was the insistence on GMT:</p>
<blockquote><p>All HTTP date/time stamps MUST be represented in Greenwich Mean Time (GMT), without exception.</p></blockquote>
<p>I&#8217;ve re-coded the If-modified-since behaviour of my webserver. Now it follows IETF&#8217;s recommendation in <a href="http://www.ietf.org/rfc/rfc1123.txt" rel="nofollow">RFC1123</a>&#8216;s Robustness Principle:</p>
<blockquote><p>&#8220;Be liberal in what you accept, and<br />
conservative in what you send&#8221;</p></blockquote>
<p>The non-IE browsers I was using must be designed along the lines of &#8220;When in Rome, do what the Romans do&#8221;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Farrington</title>
		<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/comment-page-1/#comment-157</link>
		<dc:creator>Gareth Farrington</dc:creator>
		<pubDate>Wed, 16 Jul 2008 21:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lolyco.com/sean/?p=36#comment-157</guid>
		<description>I was writing some file serving code and I saw something like this.

The HTTP spec recommends that the client store the exact date/time sent from the server, in the format the server sent it. So Firefox does this and if your server sends timestamps in the Last-Modified header in some funky format the browser will spit it back out in that same format.

IE is using an RFC 1123 date format which is THE preferred format for all dates in HTTP headers. IE transformed the date sent from the server into the standard format. This can cause problems if the server and client clocks are not synchronized or if the server uses a non standard date format. 

So the Firefox behaviors is safer but it returns illegal date strings. The IE behavior is less robust but its output is not illegal.

Check the server code to see if you are sending out last modified headers in the &quot;Fri May 30 10:14:52 MYT 2008&quot; format (which is invalid)</description>
		<content:encoded><![CDATA[<p>I was writing some file serving code and I saw something like this.</p>
<p>The HTTP spec recommends that the client store the exact date/time sent from the server, in the format the server sent it. So Firefox does this and if your server sends timestamps in the Last-Modified header in some funky format the browser will spit it back out in that same format.</p>
<p>IE is using an RFC 1123 date format which is THE preferred format for all dates in HTTP headers. IE transformed the date sent from the server into the standard format. This can cause problems if the server and client clocks are not synchronized or if the server uses a non standard date format. </p>
<p>So the Firefox behaviors is safer but it returns illegal date strings. The IE behavior is less robust but its output is not illegal.</p>
<p>Check the server code to see if you are sending out last modified headers in the &#8220;Fri May 30 10:14:52 MYT 2008&#8243; format (which is invalid)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poon Poi Ming</title>
		<link>http://blog.lolyco.com/sean/2008/06/21/if-modified-since-date-formats-in-firefox-and-ie7/comment-page-1/#comment-29</link>
		<dc:creator>Poon Poi Ming</dc:creator>
		<pubDate>Sat, 21 Jun 2008 14:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lolyco.com/sean/?p=36#comment-29</guid>
		<description>Hi Seanie, I got utterly lost halfway. Too technical for me, but I guess the target audience of this article is more for the tech-savvy, LOL.</description>
		<content:encoded><![CDATA[<p>Hi Seanie, I got utterly lost halfway. Too technical for me, but I guess the target audience of this article is more for the tech-savvy, LOL.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

