title: htaccess / mod_expires - caching specific files
body: <p>Ok, I checked a lot of websites about how to manage the browser's cache memory with a <code>.htaccess</code> file, but it is still very not clear to me.</p>
  
  <p>I want to cache specific files for one month. For the rest, I want it to be refreshed every time. So I tried:</p>
  
  <pre><code>&lt;IfModule mod_headers.c&gt; 
      Header unset Cookie
      Header unset Set-Cookie
      Header unset Cache-Control
      Header unset ETag
      FileETag none 
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_expires.c&gt;  
      ExpiresActive On
      ExpiresDefault "now"
      &lt;Files "/css/jquery-ui.css"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
      &lt;Files "/js/jquery-1.10.2.min.js"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
      &lt;Files "/js/jquery-ui.js"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
      &lt;Files "/js/analytics.js"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
      &lt;Files "/matheos/img/*"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
      &lt;Files "/img/*"&gt;
        ExpiresDefault "access plus 1 month"
      &lt;/Files&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But it doesn't work exactly as expected...</p>
  
  <p>The HTML is correctly not cached, but the specific files like <code>jquery-ui.css</code>, which should be cached for 1 month, are also not cached.</p>
  
  <p>Anyway, does this <code>.htaccess</code> seem ok for you ?</p>