Note that there are some explanatory texts on larger screens.

plurals
  1. POCaching not working in HTTPS
    primarykey
    data
    text
    <p>I had previously asked this question and mistakenly thought my problem didn't really exist (see: <a href="https://stackoverflow.com/questions/12566852/caching-and-https">Caching and HTTPS</a>). I was wrong; the problem does exist.</p> <p>Here's the description of my problem:</p> <ol> <li>When I load a resource (say, <strong>resource-a</strong>) from an HTTP page (all resources will come from HTTP when on an HTTP page), I get a <code>200 OK</code>. When I reload the page (or go to another HTTP page), resource-a gets a <code>304 Not Modified</code>.</li> <li>When I load resource-a from an HTTPS page (all resources will from from HTTPS when on an HTTPS page), resource-a is loaded from HTTPS and get a <code>200 OK</code>. And when I reload the page (or go to another HTTPS page), I get a <code>304 Not Modified</code>.</li> <li>When I return to an HTTP page, resource-a still gets a <code>304 Not Modified</code>.</li> <li>When I return to an HTTPS page, resource-a gets a <code>200 OK</code>. <strong>What happened to the cached copy? How can I make it cached?</strong></li> </ol> <p>Here's an example for the headers:</p> <pre><code>Request URL: https://styles.mydomain.com/assets/styles/main.css Request Method: GET Status Code: 200 OK Request Headers Accept: text/css,*/*;q=0.1 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Connection: keep-alive Host: styles.mydomain.com Referer: https://www.mydomain.com/sign-in/ User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 Response Header Accept-Ranges: bytes Cache-Control: public Connection: Keep-Alive Content-Encoding: gzip Content-Length: 11836 Content-Type: text/css Date: Tue, 02 Oct 2012 09:51:20 GMT Expires: Fri, 30 Sep 2022 09:51:20 GMT Keep-Alive: timeout=5, max=99 Last-Modified: Tue, 02 Oct 2012 09:25:30 GMT Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.3.8 Vary: Accept-Encoding </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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