PageRenderTime 27ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/.htaccess

http://showslow.googlecode.com/
#! | 38 lines | 33 code | 5 blank | 0 comment | 0 complexity | e11d6d7de560c56c58511eafb05feb96 MD5 | raw file
  1. <IfModule mod_deflate.c>
  2. SetEnv mod_deflate On
  3. # Insert filter
  4. SetOutputFilter DEFLATE
  5. # Netscape 4.x has some problems...
  6. BrowserMatch ^Mozilla/4 gzip-only-text/html
  7. # Netscape 4.06-4.08 have some more problems
  8. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  9. # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
  10. # the above regex won't work. You can use the following
  11. # workaround to get the desired effect:
  12. BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  13. # Don't compress images
  14. SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip
  15. </IfModule>
  16. <IfModule mod_rewrite.c>
  17. SetEnv mod_rewrite On
  18. RewriteEngine On
  19. RewriteRule . - [E=URLVERSIONREWRITE:YES]
  20. RewriteRule ^(.*)\.(\d+)(_m_\d+)?\.([^\.]+)$ $1.$4 [L,QSA]
  21. </IfModule>
  22. <IfModule mod_expires.c>
  23. SetEnv mod_expires On
  24. ExpiresActive On
  25. ExpiresByType image/png "access plus 1 year"
  26. ExpiresByType image/gif "access plus 1 year"
  27. ExpiresByType image/jpeg "access plus 1 year"
  28. ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
  29. ExpiresByType text/css "access plus 1 year"
  30. ExpiresByType application/x-javascript "access plus 1 year"
  31. ExpiresByType application/javascript "access plus 1 year"
  32. ExpiresByType text/javascript "access plus 1 year"
  33. </IfModule>