title: .htaccess not working - only caching images and not JS or CSS
body: <h3>Duplicate:</h3>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/841209">Why isn’t my javascript &amp; css caching ?</a></p>
  </blockquote>
  <p><strong>I'm noticing that I'm only receiving 304 HTTP codes (cached content) for images but not JavaScript or CSS.</strong></p>
  <p>My .htaccess file is:</p>
  <pre><code>Options -Indexes
  Options +FollowSymLinks  
  
  # Enable ETag
  FileETag MTime Size
  
  # Set expiration header
  ExpiresActive on
  ExpiresDefault &quot;access plus 1 week&quot;
  
  # 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>Anyone know why only images are caching and not my JavaScript or CSS?</strong></p>