title: Setting expiry on static resources with htaccess
body: <p>just got to know that setting expiry dates for static resources make your site go fast and jump in rankings.</p>
  
  <p>My question is:</p>
  
  <ol>
  <li><p>Does browser checks create date of the static resource?</p></li>
  <li><p>If I make change to a css before 1 month, does server sends fresh copy and browser refreshes its cache?</p></li>
  </ol>
  
  <p>This is the code I added to htaccess:</p>
  
  <pre><code>&lt;IfModule mod_expires.c&gt;
  # Enable expirations
  ExpiresActive On 
  # Default directive
  ExpiresDefault "access plus 1 month"
  # My favicon
  ExpiresByType image/x-icon "access plus 1 year"
  # Images
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  # CSS
  ExpiresByType text/css "access plus 1 month"
  # Javascript
  ExpiresByType application/javascript "access plus 1 year"
  &lt;/IfModule&gt;
  </code></pre>