all repos — h3rald @ 75c0fe68d040af1c8027baa660bb9fecff3bb70b

The sources of https://h3rald.com

Updated .htaccess (mod_deflate, ETags).
h3rald h3rald@h3rald.com
Fri, 28 Aug 2009 17:32:45 +0200
commit

75c0fe68d040af1c8027baa660bb9fecff3bb70b

parent

7147d9f03c2078a0af204345514913071348c1d5

1 files changed, 24 insertions(+), 0 deletions(-)

jump to
M resources/.htaccessresources/.htaccess

@@ -4,6 +4,30 @@

# Follow symbolic links in this directory. Options +FollowSymLinks +# Unset ETags +Header unset ETag +FileETag None + +# Compress text files. +<IfModule mod_deflate.c> + SetOutputFilter DEFLATE +# compress content with type html, text, js, and css + AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/x-javascript + <IfModule mod_headers.c> +# properly handle requests coming from behind proxies + Header append Vary User-Agent + </IfModule> +</IfModule> + +# Properly handle old browsers that do not support compression +<IfModule mod_deflate.c> + BrowserMatch ^Mozilla/4 gzip-only-text/html + BrowserMatch ^Mozilla/4\.0[678] no-gzip + BrowserMatch \bMSIE !no-gzip !gzip-only-text/html +# Explicitly exclude binary files from compression just in case + SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|swf|ico|zip)$ no-gzip +</IfModule> + # Custom errors ErrorDocument 404 /404/index.html ErrorDocument 500 /500/index.html