M
M
Mikhail Gilmutdinov2016-02-22 19:59:05
htaccess
Mikhail Gilmutdinov, 2016-02-22 19:59:05

How to speed up the loading of a site on Wordpress?

Help optimize site speed! In my opinion there is some kind of delay of 6-7 seconds before loading. Installed Total Cache plugin. and Yoast SEO.
Server in Kazakhstan.
Google Insight says enable gzip/
# BEGIN W3TC Browser Cache
Header append Vary User-Agent env=!dont-vary
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
# END W3TC Browser Cache
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|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.*
Header set Cache-Control "max-age=2592000"
order allow,deny
deny from all

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Z
Zhainar, 2016-02-23
@zhainar

https://habrahabr.ru/post/264033/

M
Mikhail Gilmutdinov, 2016-02-22
@Mixailhr

I'll make the photos even more optimized in Photoshop!
and here is htaccess
# BEGIN W3TC Browser Cache
Header append Vary User-Agent env=!dont-vary
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text /richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
# END W3TC Browser Cache
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|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.*
Header set Cache-Control "max-age=2592000"
order allow,deny
deny from all

D
Dmitry, 2016-02-22
@dimasmagadan

And at what stage do you have this delay?
Try testing the site first. For example, through this service
www.webpagetest.org
And post the test results here.
Then it will be possible to say in detail what exactly you should optimize.

V
Viktor Taran, 2016-02-29
@shambler81

You please inspect the site and with the record of the network, what time is eating?
In general, you need to optimize both the site and the server, and both can give improvements every 20 times, depending on the settings.
For example, you have php cache disabled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question