title: Apache server-side files caching via .htaccess?
body: <ol>
  <li><p>I'm starting new website and gonna include several JS libs and would like to know how <strong>.htaccess</strong> file template should look like with <strong>caching</strong> of media and JS files on?</p></li>
  <li><p>Whats better for compression, <strong>GZip</strong> or <strong>Deflate</strong>?</p></li>
  <li><p>Is it better/faster solution to serve those JS libs off the Google CDN perhaps then locally?</p></li>
  </ol>
  
  <p>I'm asking CDN question since some of scripts served off GoogleCDN are potentially going to update and eventually break the website layout so i thought it would be better for me to host them locally and cache via webserver if its going to work with same/near-same speed.</p>