title: Google Chrome Cache
body: <p>I have an html page that embeds a flash (flex) application.</p>
  
  <p>I have the following headers:</p>
  
  <pre><code>&lt;META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"&gt;
  &lt;META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE"&gt;
  &lt;META HTTP-EQUIV="Pragma" CONTENT="no-cache"&gt;
  &lt;META HTTP-EQUIV="Expires" CONTENT="-1"&gt;
  </code></pre>
  
  <p>In addition, each time I release a new version of the app, I change the file name. So, it becomes something like MyApp_v1.swf, which is then updated to MyApp_v2.swf.</p>
  
  <p>Despite this, chrome still caches the html page and the swf file. This is a major problem, as clients do not then see the updated swf unless they clear their browser cache.</p>
  
  <p>I even tried to get around this with changing the htaccess file, and renaming the index.html file that hosts the swf file:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^(.*)$ https://www.mysite.com/app[R,L] 
  DirectoryIndex index.html #this was changed from myapp.html
  </code></pre>
  
  <p>Even after doing this, Chrome still caches the swf, and is STILL reading from the old html file. I do a view source on the html, and its still showing the old file.</p>
  
  <p>This all works fine in any other browser.</p>