title: Apache caching with .htaccess problem (incorrect Date header?)
body: <p>I am using .htaccess to cache the js / css / etc files on the website. Everything works fine, but for some reason my pages get cached, too. I looked into the headers, and it works like this:</p>
  
  <ol>
  <li>Browser requests a page <a href="http://poko.lt/up" rel="nofollow">http://poko.lt/up</a></li>
  <li>Server responds with 301 to <a href="http://poko.lt/up/" rel="nofollow">http://poko.lt/up/</a> (with Date and Last Modified headers equal to current time)</li>
  <li>Browser requests <a href="http://poko.lt/up/" rel="nofollow">http://poko.lt/up/</a></li>
  <li>Server responds with the page, and with Date and Last Modified headers equal to my last forced refresh (like, yesterday), but Cache-control header is fine (max-age=0)</li>
  <li>I get the old version of the page :/</li>
  </ol>
  
  <p>My .htaccess looks like this:</p>
  
  <pre><code># Turn on Expires and set default to 0
  ExpiresActive On
  ExpiresDefault A0
  
  # 1 YEAR
  &lt;FilesMatch "\.(jpg|jpeg|png|gif|svg|eot|ttc|ttf|otf)$"&gt;
  ExpiresDefault A29030400
  Header append Cache-Control "public"
  Header unset Last-Modified
  Header unset ETag
  FileETag None
  &lt;/FilesMatch&gt;
  
  # 2 WEEKS
  &lt;FilesMatch "\.(css|js|swf)$"&gt;
  ExpiresDefault A1209600
  Header append Cache-Control "proxy-revalidate"
  Header unset Last-Modified
  Header unset ETag
  FileETag None
  &lt;/FilesMatch&gt;
  
  # NO CACHE
  &lt;FilesMatch "\/$"&gt;
  ExpiresDefault A0
  Header append Cache-Control "proxy-revalidate"
  Header unset Last-Modified
  Header unset ETag
  FileETag None
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>And, one can test it with the website <a href="http://poko.lt" rel="nofollow">http://poko.lt</a> (the three red icons in the top middle of the page are the ones causing the problems). I am using FF4, and checking headers with Firebug.</p>