title: Why isn't my javascript & css caching?
body: <p>It's appears ONLY javascript and css are not caching ... but images are caching.</p>
  
  <p>I am using Firebug and when I refresh the page, I notice in Firebug a lot of <strong>200 HTTP responses</strong> for js/css but am receiving <strong>304 HTTP codes</strong> (content not modified) for all of my images. So it appears that my JS and CSS are not caching.</p>
  
  <p>Also, when using YSlow to help determine the problem with my JS/CSS content not caching, it informs me that:</p>
  
  <blockquote>
    <p>There are 4 components with misconfigured ETags</p>
    
    <ul>
    <li><a href="http://www.example.com/css/basic.css" rel="noreferrer">http://www.example.com/css/basic.css</a></li>
    <li><a href="http://www.example.com/js/ga.js" rel="noreferrer">http://www.example.com/js/ga.js</a></li>
    <li><a href="http://www.example.com/js/dojo/dojo.js" rel="noreferrer">http://www.example.com/js/dojo/dojo.js</a></li>
    </ul>
  </blockquote>
  
  <p>Listed below is my .htaccess file</p>
  
  <pre><code>Options -Indexes
  Options +FollowSymLinks  
  
  # Enable ETag
  FileETag MTime Size
  
  # Set expiration header
  ExpiresActive on
  ExpiresDefault "access plus 1 week"
  
  # Compress some text file types
  AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/x-javascript text/javascript application/javascript application/json
  
  # Deactivate compression for buggy browsers
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  
  # Set header information for proxies
  Header append Vary User-Agent
  </code></pre>
  
  <p><strong>Any idea what's wrong with my .htaccess access file preventing it from caching my CSS or JavaScript?</strong></p>