-
AuthorPosts
-
May 14, 2018 at 9:49 pm #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.
May 16, 2018 at 8:28 pm #957665Hey timkeeley,
Look the report I recieve
https://gtmetrix.com/reports/bayareahealthtrust.com/HxOXdI1uIt all good :)
Best regards,
BasilisMay 16, 2018 at 11:08 pm #957823to 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 gzipon 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
May 18, 2018 at 5:12 pm #958693Hi timkeeley,
Have you tried the solution suggested by Guenni007?
Best regards,
VictoriaMay 18, 2018 at 5:13 pm #958694i think if that are the results of his page basilis posted then there are no troubles at all
October 30, 2018 at 5:39 pm #1028173It 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.cssIf 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.
November 4, 2018 at 10:56 pm #1029686Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.