spirit posteets tagged deflate  [ Profile ]

Sort by: Date / Title /

  1. 10 years ago
    # Activer le module
    a2enmod deflate
    
    # On compresse les types mime suivants (hmtl, texte, xml, css, js)
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
    
    # Niveau de compression
    DeflateCompressionLevel 9
    
    # Règles particulières pour navigateur non compatibles
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    
    # On log pour voir le taux de compression
    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
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1048"></script>

First / Previous / Next / Last / Page 1 of 1 (1 posteets)