Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1080086

    Hallo,

    wie aktiviere ich ENFOLD die GZIP-Komprimierung?

    schöne Grüße
    Andy

    #1080173

    das ist eigentlich nicht Sache eines Themas, sondern der Einstellung deines Providers.
    Entweder den mal anschreiben oder via htaccess ( im Falle eines Apache Servers ) versuchen die Module zu aktivieren.
    moddeflate ist die neuere komponente gzip ist aber auch mit drin. (Ausserdem auch einige Sicherheitseinstellungen.

    Das hier sind so Standard einträge dich ich zusätzlich zu dem WordPress Einträgen noch mit in der htaccess Datei habe:

    # secure htaccess-file
    <files ~ "^.*\.([Hh][Tt][Aa])">
    order allow,deny
    deny from all
    satisfy all
    </files>
    
    # Keep-Alive
    <ifModule mod_headers.c>
       Header set Connection keep-alive
    </ifModule>
     
    
    # Gzip
    <IfModule mod_mime.c>
        AddType application/javascript          js
        AddType application/vnd.ms-fontobject   eot
        AddType application/x-font-ttf          ttf ttc
        AddType font/opentype                   otf
        AddType application/x-font-woff         woff
        AddType application/x-woff              woff
        AddType image/svg+xml                   svg svgz 
        AddEncoding gzip                        svgz
    </Ifmodule>
     
    
    # GZip Kompression
    <IfModule mod_gzip.c>
     mod_gzip_on       Yes
     mod_gzip_dechunk  Yes
     mod_gzip_item_include file      \.(html?|txt|css|js|svg|php|pl)$
     mod_gzip_item_include handler   ^cgi-script$
     mod_gzip_item_include mime      ^text/.*
     mod_gzip_item_include mime      ^application/x-javascript.*
     mod_gzip_item_exclude mime      ^image/.*
     mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>
    
     
    # Browsercache
    <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresDefault "access plus 1 month"
     ExpiresByType text/css "access plus 1 month"
     ExpiresByType text/javascript "access plus 1 month"
     ExpiresByType text/html "access plus 1 month"
     ExpiresByType application/javascript "access plus 1 month"
     ExpiresByType application/x-javascript "access plus 1 month"
     ExpiresByType application/x-font-ttf "access plus 1 month"
     ExpiresByType application/x-font-woff "access plus 1 month"
     ExpiresByType application/x-woff "access plus 1 month"
     ExpiresByType application/xhtml-xml "access plus 600 seconds"
     ExpiresByType application/pdf "access 1 month"
     ExpiresByType image/gif "access plus 1 month"
     ExpiresByType image/jpg "access plus 1 month"
     ExpiresByType image/jpeg "access plus 1 month"
     ExpiresByType image/svg+xml "access plus 1 year"
     ExpiresByType image/svg "access plus 1 year“
     ExpiresByType image/png "access plus 1 month"
     ExpiresByType image/x-icon "access plus 1 month"
    </IfModule>
    
     
    # Deflate by FileType
    <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/plain
     AddOutputFilterByType DEFLATE text/html
     AddOutputFilterByType DEFLATE text/xml
     AddOutputFilterByType DEFLATE text/css
     AddOutputFilterByType DEFLATE text/javascript
     AddOutputFilterByType DEFLATE image/svg+xml
     AddOutputFilterByType DEFLATE application/javascript
     AddOutputFilterByType DEFLATE application/xml
     AddOutputFilterByType DEFLATE application/xhtml+xml
     AddOutputFilterByType DEFLATE application/rss+xml
     AddOutputFilterByType DEFLATE application/atom_xml
     AddOutputFilterByType DEFLATE application/x-woff
     AddOutputFilterByType DEFLATE application/x-font-ttf
     AddOutputFilterByType DEFLATE application/x-font-woff
     AddOutputFilterByType DEFLATE application/javascript
     AddOutputFilterByType DEFLATE application/x-javascript
     AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>
     
    # ETag
    Header unset ETag
    FileETag None
    #1081188

    Hi,

    Thanks for helping out @guenni007, did you try that out @andreasconstantin?

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.