<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life Scaling &#187; Browsers</title>
	<atom:link href="http://orensol.com/tag/browsers/feed/" rel="self" type="application/rss+xml" />
	<link>http://orensol.com</link>
	<description>Oren Solomianik's Blog</description>
	<lastBuildDate>Mon, 21 Jun 2010 08:10:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Chrome 2, CSS Content-Type and Amazon S3</title>
		<link>http://orensol.com/2009/07/14/google-chrome-2-css-content-type-and-amazon-s3/</link>
		<comments>http://orensol.com/2009/07/14/google-chrome-2-css-content-type-and-amazon-s3/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 11:30:15 +0000</pubDate>
		<dc:creator>Oren</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Content-Type]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://orensol.com/?p=258</guid>
		<description><![CDATA[<p>It seems that ever since <a href="http://gizmodo.com/5265565/google-chrome-2-released-with-much-faster-rendering-full-screen" target="_blank">Google Chrome 2 was released</a>, some of the CSS files I was serving from S3 were not being treated as valid by it, and the page layouts would break because of it. Firefox and IE were fine with it, and Chrome 1 was ok with it too. It [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-260" src="http://orensol.com/files/2009/07/google-chrome-logo.jpg" alt="Google Chrome" width="278" height="198" />It seems that ever since <a href="http://gizmodo.com/5265565/google-chrome-2-released-with-much-faster-rendering-full-screen" target="_blank">Google Chrome 2 was released</a>, some of the CSS files I was serving from S3 were not being treated as valid by it, and the page layouts would break because of it. Firefox and IE were fine with it, and Chrome 1 was ok with it too. It was just Chrome 2.</p>
<p>A little inspection showed that the CSS files I stored on S3 were not being served with a Content-Type header, while from a standard apache web server they were. This combined with the new strictness of Chrome 2 (actually resulting from <a href="http://groups.google.com/group/chromium-discuss/browse_thread/thread/3dae053171a48104/0399d333ca51419b" target="_blank">a new strictness in WebKit</a>) made Chrome not treat these files as actual CSS, and break the page.</p>
<p>So the obvious solution was to make the CSS files be delivered from S3 with the correct &#8220;Content-Type: text/css&#8221; header. Fortunately enough, this is <a href="http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?RESTObjectPUT.html" target="_blank">very easy to do with S3 API</a>. Just pass the &#8220;Content-Type:text/css&#8221; header when you&#8217;re uploading the file to S3, and it will be present in the response headers whenever someone requests the file.</p>
<p>Here&#8217;s to the browser wars, that never end and got more complicated with the new player in town, Google Chrome.</p>
]]></content:encoded>
			<wfw:commentRss>http://orensol.com/2009/07/14/google-chrome-2-css-content-type-and-amazon-s3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->