Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Some ideas to look into:</p> <ol> <li><p>I don't think <code>cache</code> is a valid <code>Cache-Control</code> directive.</p> <p>Try using a value of <code>public</code> instead, or <code>private</code> if that's more appropriate to your content. Check out <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html" rel="nofollow noreferrer">RFC 2616</a> for more information.</p></li> <li><p>Perhaps you're sending more than one <code>Cache-Control</code> directive?</p> <p>Use a tool like <a href="http://getfirebug.com/" rel="nofollow noreferrer">Firebug</a> or <a href="http://livehttpheaders.mozdev.org/" rel="nofollow noreferrer">LiveHTTPHeaders</a> to peek at the actual headers your browsers are receiving. Make sure they're not getting something you don't expect. It sounds like you might already be doing this though. Also make sure you're not also sending <code>Pragma: no-cache</code>.</p></li> <li><p>Try setting the <code>Expires</code> header in addition to using <code>Cache-Control</code>.</p> <p>It's also possible you're sending the browser conflicting <code>Cache-Control</code>/<code>Pragma</code> headers and IE chooses to take the <code>Pragma</code> headers as first priority for whatever backwards reason.</p></li> <li><p>Make sure IE is configured to allow caching! :)</p> <p><code>Control Panel</code> > <code>Internet Options</code> > <code>Temporary Internet Files</code> > <code>Settings</code> > <code>Check for newer versions of stored pages</code></p></li> <li><p>Try sending the PDF as a response to a <code>POST</code> request (via form submit).</p> <p>IE is allowing a cache to take place regardless of the headers in the response due to this requirement from <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html" rel="nofollow noreferrer">RFC 2616</a>: "By default, a response is cacheable if the requirements of the request method, request header fields, <strong>and</strong> the response status indicate that it is cacheable." Responses to <code>POST</code> requests are NOT cacheable, so IE shouldn't include that header in it's request.</p></li> <li><p>Try sending the <code>Content-MD5</code> and <code>Last-Modified</code> headers with consistent values (if they're not already being sent).</p> <p>This might help convince IE that the content of the PDF has not changed. I don't think this solution will work, because IE is obviously stubborn, but it's worth mentioning.</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload