.htaccess 420 B

123456789101112131415
  1. AddType "text/javascript;charset=UTF-8" .jgz .js
  2. AddEncoding gzip .jgz
  3. <IfModule expires_module>
  4. ExpiresActive On
  5. ExpiresDefault A86400
  6. </IfModule>
  7. <IfModule rewrite_module>
  8. RewriteEngine on
  9. #RewriteCond %{HTTP_USER_AGENT} ".*Safari.*" [OR]
  10. RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6.*" [OR]
  11. RewriteCond %{HTTP:Accept-Encoding} !gzip
  12. RewriteRule (.*)\.jgz$ $1.js [L]
  13. </IfModule>