
# $Id: .htaccess 9339 2011-09-29 23:03:01Z john $

allow from all

<FilesMatch "\.(avi|flv|mov|wmv|wma|mp3|mp4|m4a|mkv|swf|pdf|doc|ppt|ico|jpg|jpeg|png|gif|js|css)$">
  <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault A29030400
    <IfModule mod_headers.c>
      Header append Cache-Control "public"
    </IfModule>
  </IfModule>
  <IfModule !mod_expires.c>
    <IfModule mod_headers.c>
        Header set Expires "Sun, 1 Jan 2012 00:00:00 GMT"
        Header append Cache-Control "max-age=172800, public"
    </IfModule>
  </IfModule>
  <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip)$ no-gzip
    <IfModule mod_headers.c>
      # properly handle requests coming from behind proxies
      Header append Vary User-Agent
    </IfModule>
    # old browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  </IfModule>
</FilesMatch>
