-
AuthorPosts
-
November 12, 2018 at 10:02 pm #1032764
Hey Enfold theme support team,
I have noticed that our website has been very slow recently, then I ran a GTmetrix testing, then found out that are 85 static components without a far-future expiration date, most of them are from our Enfold theme. My website is running on Enfold version of 4.4.1.- This topic was modified 6 years ago by Linortek.
November 13, 2018 at 5:24 pm #1033073This is the header caching settings in my .htaccess file:
<FilesMatch “.(ico|pdf|flv|jpg|jpeg|png|gif|svg|js|css|swf)$”>
Header set Cache-Control “max-age=84600, public”
</FilesMatch>
## EXPIRES HEADER CACHING ##
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType image/svg “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/javascript “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 month”
## EXPIRES HEADER CACHING ##
Anybody can give me some idea how to fix the slow site issue caused by some of the files in Enfold theme?
Thanks!November 14, 2018 at 4:34 am #1033306Hi,
Did you try to use a caching plugin? Maybe this will help you out: https://gtmetrix.com/add-expires-headers.html
Best regards,
RikardNovember 14, 2018 at 3:31 pm #1033529Hey Rikard,
Thank you for getting back to me. I did use a new plugin to fix the issue. But just curious, my site was quite fast before, but after a few updates of Enfold, it became so slow then I tested and got that report, the old cache plugin did not work anymore and I had to switch to another one. How can this happen?November 15, 2018 at 8:15 am #1033817Hi,
I’m not sure why that would happen, did you check your .htaccess file to verify the expiration set there?
Best regards,
RikardNovember 16, 2018 at 3:48 pm #1034483Yes, please see my second post above for the header setting, it includes css file, but all the testing results without a header expiration date for Enfold theme are css files. Not sure what’s going on. Then I installed Autopmize cache plugin and it fixed that issue. I am just worried that after a while and the issues come back again like before.
November 16, 2018 at 4:49 pm #1034492By the way – i think performance does not correlate in a direct way to expires.c
this is a bad ranking factor on gtmetrix or pingdom tools – yes – but it does not decelerate your site.there must be other factors – or you just didn’t express yourself precisely enough upstairs in the intro topic.
Is it the site of your avatar link ?don’t know if it is neccessary to set the “timeout” with a plus – my entries concerning to expires header are:
# 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>
- This reply was modified 6 years ago by Guenni007.
November 16, 2018 at 5:07 pm #1034499Hey Guenni007,
Thank you for your input. I don’t know any website coding unfortunately, and we are very small, we got a lot of reports in the past few weeks that our website is very slow, then I came to run the speed test with GTmetrix and Pingdom and found those facts that made the site slow. Then installed Autopmitize plugin after did a lot of research, the site speed seems improving a little bit, but still has some issue. I really don’t know what else should I do actually.November 19, 2018 at 8:48 pm #1035327Hi,
That is simple to add it, if u edit the htaccess rule.
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.