Created
December 12, 2012 21:54
-
-
Save fduran/4271982 to your computer and use it in GitHub Desktop.
Apache2 optimization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# www.fduran.com | |
# Apache2 optimization | |
# apache-wide (/etc/apache2/apache2.config ): | |
# compression | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
# Etags | |
Header unset ETag | |
FileETag None | |
# Per <VirtualHost> /etc/apache2/sites-enabled/somesite : | |
<LocationMatch "\.(css|js|jpg|gif|png|pdf|ico)$"> | |
Header set Cache-Control "max-age=290304000, public" | |
</LocationMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment