<?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>dotvoid.com &#187; https</title>
	<atom:link href="http://www.dotvoid.com/tag/https/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotvoid.com</link>
	<description>Experiments and thoughts in PHP and javascript</description>
	<lastBuildDate>Tue, 11 Oct 2011 12:49:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problem with downloading files with Internet Explorer over HTTPS</title>
		<link>http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/</link>
		<comments>http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 08:44:44 +0000</pubDate>
		<dc:creator>Danne</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.dotvoid.com/?p=388</guid>
		<description><![CDATA[This behaviour has bitten me before. Yesterday I was asked to resolve the issue again. And as my memory is short I was again forced to search the web for a solution. The solution is simple &#8211; but also stupid.
The problem is that Internet Explorer does not handle file dowloads without caching over https very [...]]]></description>
			<content:encoded><![CDATA[<p>This behaviour has bitten me before. Yesterday I was asked to resolve the issue again. And as my memory is short I was again forced to search the web for a solution. The solution is simple &#8211; but also stupid.</p>
<p>The problem is that Internet Explorer does not handle file dowloads without caching over https very well. Or at all. According to knowledge articles on Microsofts website the problem occurs when having one or two of the http headers:</p>
<pre>Pragma: no-cache
Cache-control: no-cache,max-age=0,must-revalidate</pre>
<p>Previously I have have just omitted the http header &#8220;Pragma: nocache&#8221; for IE but it seems it does not always help.</p>
<p>So, whether you want it or not, the solution to the <em>IE https download cache problem</em> is to tell IE to cache the file.</p>
<pre>if ((isset($_SERVER["HTTPS"]) &amp;&amp; strtolower($_SERVER["HTTPS"] == "on")) &amp;&amp;
    preg_match("/MSIE/", $_SERVER["HTTP_USER_AGENT"])) {
	header('Pragma: cache');
} else {
	header('Pragma: no-cache');
}</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/&amp;title=Problem+with+downloading+files+with+Internet+Explorer+over+HTTPS" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/&amp;t=Problem+with+downloading+files+with+Internet+Explorer+over+HTTPS" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/&amp;title=Problem+with+downloading+files+with+Internet+Explorer+over+HTTPS&amp;summary=This%20behaviour%20has%20bitten%20me%20before.%20Yesterday%20I%20was%20asked%20to%20resolve%20the%20issue%20again.%20And%20as%20my%20memory%20is%20short%20I%20was%20again%20forced%20to%20search%20the%20web%20for%20a%20solution.%20The%20solution%20is%20simple%20-%20but%20also%20stupid.%0D%0A%0D%0AThe%20problem%20is%20that%20Internet%20Explorer%20does%20not%20handle%20file%20dowloads%20without%20caching%20over%20&amp;source=dotvoid.com" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-plaxo">
			<a href="http://www.plaxo.com/?share_link=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/" rel="nofollow" class="external" title="Share this on Plaxo">Share this on Plaxo</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/&amp;title=Problem+with+downloading+files+with+Internet+Explorer+over+HTTPS" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Problem+with+downloading+files+with+Internet+Explorer+over+HTTPS+-+File: /data/app/webapp/functions.php<br />Line: 7<br />Message: Too many connections&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.dotvoid.com/2009/10/problem-with-downloading-files-with-internet-explorer-over-https/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

