Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #956690

    I have a fresh install of Enfold – 4.3.2, and I have enabled CSS and JS file merging, as well have a caching plugin installed (autoptimize). Surprisingly, I am getting worse performance results than with the Enfold versions without the performance improvements.

    GTMetrix is measuring a 0 for gzip compression. – 73% and 84%.

    Any ideas?

    • This topic was modified 6 years, 6 months ago by timkeeley.
    #957665

    Hey timkeeley,

    Look the report I recieve
    https://gtmetrix.com/reports/bayareahealthtrust.com/HxOXdI1u

    It all good :)

    Best regards,
    Basilis

    #957823

    to enable gzip there are a lot of options. It depends on your Internet Service Provider what options he allows you to set via php.ini or htaccess.
    I often do it via htaccess file on the wordpress root (the htaccess file is a hidden file with a dot on front – so on ftp client you might not see it directly till you enable show hidden files)
    there you can set a lot of other options : f.e. browser caching , etag and gzip

    on apache servers i add to my htaccess file:

    # Secure your wp-config
    # Disallow access to important files
    <FilesMatch "(^\.|wp-config\.php|xmlrpc\.php|(?<!robots)\.txt|(liesmich|readme)\.*)">
       Require all denied
    </FilesMatch>
    
    # 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>
     
    
    # mime types
    <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 image/gif "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
    #958693

    Hi timkeeley,

    Have you tried the solution suggested by Guenni007?

    Best regards,
    Victoria

    #958694

    i think if that are the results of his page basilis posted then there are no troubles at all

    #1028173

    It seems that on certain hosting (I experienced the issue with Varnish), even with these rules activated, GTMetrix and other tools reported 0 gzip score for these resources:
    /uploads/dynamic_avia/avia-merged-styles-4395cb861cfe099b88c2b00a804d1d69.css .
    /dynamic_avia/avia-footer-scripts-3d4a0042375edc5fd8305a6db7419c57.js .
    /themes/enfold/config-layerslider/LayerSlider/static/layerslider/skins/fullwidth/skin.css

    If you deactivate the settings for css and js in Theme Performance option, you get 100/100 on gzip compression, but very low scores on css and js

    • This reply was modified 6 years ago by cocoguido2.
    #1029686

    Hi,

    Yea it seems that your hosting provider has a specific option on how to handle the results. Could you please check what type of cache they have enabled?

    Best regards,
    Basilis

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