Deflate

Till

Administrator
Du kannst es ja über die apache Direktiven pro Website konfigurieren. Normalerweise schaltet man das aber für den ganzen Server an oder aus.
 

sirrus

New Member
Ja, das weis ich... war nur eine Idee für die GUI affinen Menschen :)

Ausserdem bin ich gerade an der Optimierung meines Servers... da ist das schon hilfreich.

Ich mache das über den conf.d:

Code:
<IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE text/html text/plain text/xml
      BrowserMatch ^Mozilla/4         gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE             !no-gzip !gzip-only-text/html
### Logging
#DeflateFilterNote Input input_info
#DeflateFilterNote Output output_info
#DeflateFilterNote Ratio ratio_info
#LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
#CustomLog /var/log/apache2/deflate_log deflate
</IfModule>
Und zusätzlich passe ich noch die Expiredates von statischem Content an

Code:
<IfModule mod_expires.c>
        ExpiresActive on
        ExpiresByType image/gif "access plus 1 years"
        ExpiresByType image/jpeg "access plus 1 years"
        ExpiresByType image/png "access plus 1 years"
        ExpiresByType text/css "access plus 1 years"
        ExpiresByType text/js "access plus 1 years"
        ExpiresByType text/javascript "access plus 1 years"
        ExpiresByType application/javascript "access plus 1 years"
        ExpiresByType application/x-javascript "access plus 1 years"
        #ExpiresDefault "access plus 1 days"
</IfModule>
 
Zuletzt bearbeitet:

sirrus

New Member
Da hast du recht... ich trag das bei Gelegenheit mal zusammen und erstelle ein Howto, was man da so machen kann...
 

Werbung

Top