<?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>Stephen Best - Web Developer &#187; Front End</title>
	<atom:link href="http://tvsmashparty.com/blog/category/web-dev/front-end/feed/" rel="self" type="application/rss+xml" />
	<link>http://tvsmashparty.com/blog</link>
	<description>Technical discourse and making internet</description>
	<lastBuildDate>Sat, 22 Aug 2009 22:01:26 +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>Opera and Safari will cache content with a query string</title>
		<link>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/</link>
		<comments>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 21:22:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Front End]]></category>
		<category><![CDATA[browser cache]]></category>
		<category><![CDATA[expiry header]]></category>
		<category><![CDATA[http header]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[query string]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://tvsmashparty.com/blog/?p=7</guid>
		<description><![CDATA[Opera and Safari will cache content with a query string (if you ask them to)]]></description>
			<content:encoded><![CDATA[<p>I was doing some checking up on our HTTP expiry headers that we were sending down dynamically with our product image caching script after it was reported by YSlow that they were not doing their job properly. Another concern I had is that I was under the impression that Opera and Safari do not cache content that has a query string.</p>
<p>Some browser cache mythbusting ensued.</p>
<p>A quick google search revealed only a few references to this phenomenon posted on out dated forum threads. After browsing our development version of our site with Opera 9 and Safari 3.1.2 and tailing the apache access log it was clear that this is not at all true. Given the correct expiry and cache control headers both Opera and Safari will cache content with a query string.</p>
<p>While a most of people completely ignore proper management of their users&#8217; browser caches others make wild assumptions and generalisations about the behaviour of these strange beasts. They all behave slightly differently and the only way to know for sure if a particular browser is caching your content is to open your access log and check. One trick I have used in the past is to put sleep(5), or your language&#8217;s equivalent somewhere in the script execution, but this can get tiresome!</p>
<p>Hitting refresh in most browsers certainly all the ones I tried on my mac will re-request most if not all content regardless and also emptying your cache, clearing your private data or whatever does not always do as is promised. A quick tip to finish make sure your test browsing is clicking through links and not hitting refresh, or your tests wont be accurate.</p>
]]></content:encoded>
			<wfw:commentRss>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
