Compare Listings

How to Reduce Server Response Time in WordPress

If a website response fast we get to the content immediately but what if we type in a URL and hit enter and nothing happens then we get frustrated. The site owner also loses visitors because the site took too long to respond.

  • A faster site will increase conversions.
  • Google will love your website if it’s faster.
  • A faster site will provide a better experience for your customers and visitors.

How to reduce server response time in WordPress without any plugin?

What is Server Response Time?

The server response time is a time taken by a server to respond to the user’s request. It is also sometimes referred to as the Time To First Byte (TTFB).

How you can speed up your WordPress website. You might be aware of the fact that optimizing a WordPress website depends on the front-end as well as back-end development including your hosting. It’s going to be a little technical but it will be much easier to implement those things.

Web Hosting Service Provider Role in the Speed of Your Website

I will tell you the role of a hosting provider in speeding up a WordPress site and how hosting helps reduce server response time for a site. Before I start, I want you to make understand the flow of displaying a web page. There are mainly four steps involved:

Request: Request made by the browser
Response: The web page files and resources are downloaded
Build: Web browser uses page resources to build a web page
Render: The page is displayed to the visitor

1. Select the latest PHP version.

First of all, you go over to your cPanel and change the PHP version to the latest one as shown in the example below

select latest php version


2. Speed up your WordPress website with htacess file

Server-side caching can make a big impact. Before your user ever even requests your site, you can have settings in place to make that request load faster. These changes involve editing your site’s .htaccess file, which should be in the root folder of your website. You’ll need FTP/SSH/cPanel access to edit this file.

Reduce the server response time and speed up WordPress in 3 simple steps

1. Enable Browser Caching: Set your expiration dates

Please add this piece of code into your .hteaccess file 

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 application/pdf “access 1 month”
ExpiresByType text/x-javascript “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 2 days”

2. Enable GZip Compression

As we all know that smaller files will always transfer faster than larger files. Another way to reduce your website load time is to serve smaller files to the browser. This is easy if you activate gzip compression. Gzip automatically compresses your stylesheets and website pages before serving them to the browser making the request.

To enable gzip compression in WordPress, add this code to your .htaccess file:

# BEGIN gzip file compression
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
# END gzip file compression

3. Optimize Your Content & Images

Your must optimize your images by reducing the size. One of the biggest reason of slow loading time in WordPress is image size. When you upload an image via the standard WordPress Media Library, you upload the full-sized image. WordPress will simply scale down that image to smaller sizes; the overall file size of that particular image remains the same so you will have to resize the image before uploading to the WordPress library. You can do that online with Tinypng or using any plugin like WP

Related posts

The Best WordPress Recruitment Agency Themes for 2018

There was a time when you will have to hire a professional developer to create your recruitment...

Continue reading

3 The Best WordPress Real Estate Themes for 2018

If you want to develop a website for your real estate business or simply list your own properties...

Continue reading

5 The Best WordPress Job Board Themes for 2018

Are you looking for a perfect job board theme to build your job portal website? I specialize in...

Continue reading