title: Resource caching through .htaccess
body: <h2>My code</h2>
  
  <p>I put this .htaccess code into the root folder of my website:</p>
  
  <pre><code>ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/x-icon "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 777600 seconds"
  ExpiresByType text/javascript "access plus 2592000 seconds"
  ExpiresByType application/x-javascript "access plus 2592000 seconds"
  ExpiresByType text/html "access plus 604800 seconds"
  </code></pre>
  
  <h2>What the code should do</h2>
  
  <p>Caching images, flash objects and css, javascript and css files to the browser of users.</p>
  
  <h2>What's not working</h2>
  
  <p>If I run an audit with google chrome for some of the files (two <code>.jpg</code> images and two <code>.css</code> files) that should be cached due to the code, I'm told:</p>
  
  <blockquote>
    <p>The following resources are missing a cache expiration. Resources that
    do not specify an expiration may not be cached by browsers</p>
  </blockquote>
  
  <p>If I reload the page without leaving it and re-run the audit, I'm told:</p>
  
  <blockquote>
    <p>The following cacheable resources have a short freshness lifetime</p>
  </blockquote>
  
  <h2>My question</h2>
  
  <p>How can I solve this problem?</p>