Improve server response time?

CyberAlchemist

Well-known member
Joined
Feb 9, 2013
Messages
112
Best answers
0
Ratings
10
Points
18
#1
When checking with Google page speed insights, my site could not pass server response time which Google is requiring. Are there any ways on how to reduce the server response time?
 

CyberAlchemist

Well-known member
Joined
Feb 9, 2013
Messages
112
Best answers
0
Ratings
10
Points
18
#3
What does Google say exactly?
This is thing Google is recommending to fix

Consider Fixing:
Leverage browser caching
Show how to fix
Reduce server response time
In our test, your server responded in 0.69 seconds. There are many factors that can slow down your server response time. Please read our recommendations to learn how you can monitor and measure where your server is spending the most time.
 
Joined
Dec 2, 2015
Messages
50
Best answers
0
Ratings
8
Points
0
#5
ioZoom
Go to your file manager and create a .htaccess file and add this to it and save.

Code:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

## EXPIRES CACHING ##
<IfModule mod_expires.c>
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 text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
Server response time can be a factor of on-page optimization or server performance. If the latter than you might want to contact your provider or consider a different host.
 
Joined
Dec 4, 2015
Messages
17
Best answers
0
Ratings
3
Points
0
#4
You might want to optimize your website code first, then think about moving if it does not get better
 

RDO Servers

Well-known member
Joined
Apr 3, 2015
Messages
1,026
Best answers
0
Ratings
416 3
Points
83
#6
What framework is your site running on? (WordPress, Joomla, custom php or .net, etc)

Server Response Time aka TTFB (Time to First Byte) is often a result of the server having to compile your code, initialize your plugins, etc.
 

CyberAlchemist

Well-known member
Joined
Feb 9, 2013
Messages
112
Best answers
0
Ratings
10
Points
18
#12
CyberAlchemist
I have both wordpress cms and custom php scripts

Is there a common way to improve server response time for any types of websites?
 

Localnode

Moderator
Staff Member
Joined
Dec 15, 2015
Messages
249
Best answers
0
Ratings
69 1
Points
28
#13
Localnode
Any types? Well in cPanel there's a button called "Optimize Website" see image: http://i.imgur.com/ZitcBB7.png
It will compress your content. It's not a be-all-end-all, but it will help.

When it comes to WordPress - the generally accepted fastest caching plugin is WP Rocket. Free ones are WP Super Cahce, W3 Total Cache and Cache Enabler. In tests, I found WP Super Cache to work best for the free ones.

You can also consider getting a CDN. Free ones like CloudFlare are great. The others are MaxCDN, Akamai, KeyCDN, etc. I'd recommend KeyCDN as it's really economical, and has an excellent network.

Also look at optimising your images, TinyPNG is pretty good.

HTH!
 
Joined
Nov 27, 2015
Messages
31
Best answers
0
Ratings
6
Points
0
#7
You can also test your website with gtmetrix. It shows a timeline of all your scripts and give some tips what you can optimize on your website. Very usefull tool.
 

vishwa

Well-known member
Joined
May 12, 2014
Messages
220
Best answers
0
Ratings
15
Points
18
#11
Gtmetrix does have an option to change the test location. But it required you to sign up with them. I have an account with GTmetrix and i can test my site with different location.
 
Joined
Jan 13, 2015
Messages
18
Best answers
0
Points
0
#14
Try google master tools as they will give you the error messages after successful verification and then you can take necessary actions against those errors
 

superman2727

Well-known member
Joined
Apr 24, 2018
Messages
227
Best answers
0
Ratings
9
Points
18
#15
I can only suggest the basics which is to test your server if there is an issue using some tools like Google PageSpeed Insights; this can help you to see if your server is include on an issue. Next is to remove all the plug-ins that you don't need, it can cause some sort of thing that may slow your server. Added to it, the site size varies also; the site size is somehow connected on the response time of your server. Cheers!
 
Older Threads
Latest Threads
Recommended Threads
Replies
6
Views
318
Replies
10
Views
2,755
Replies
5
Views
1,689
Replies
9
Views
1,170

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Top