Before we start off on how to solve this issue of Leverage Browser Caching in a GoDaddy Managed WordPress let us get to know in brief what are we dealing with over here.

leverage-browser-caching-managed-wordpress-godaddy

What is Managed WordPress Hosting (by GoDaddy)?

Managed WordPress Hosting by GoDaddy is an optimized hosting platform which is specifically built and managed for running only WordPress sites. This hosting is focused on customers who are not an expert or who do not want to worry about handling the administrative level tasks such as installation, regular backups, etc.

Below are some of the unique features that GoDaddy provides their Managed WordPress Customers:

  • Server-level-enhancing caching for better performance.
  • Handles the WordPress core updates automatically.
  • Better security with various plugins and file restrictions.
  • Regular backups automatically.

What is Browser Cache & Leverage Browser Caching?

When you open any URL/Website the web browser you use loads various files like images, CSS, JS, etc. So, the browser cache tries to store all the common resource files like your website logo, CSS files, and other resources so that they don’t need to be loaded again which leads to a faster web browsing experience.

So, when you don’t leverage the browser cache feature your site tends to load at the same speed everytime a user visits any link to your site. If you notice that the page load speed of a website, loading for the second time, is faster than the first it means that the website is leveraging the browser caching feature.

What are the Hurdles in Fixing this Issue?

You might have come across various article or posts on websites and forums on how to fix this issue. But, the issue here is with the GoDaddy hosting. Due to various reasons, they don’t give access to the hosting control panel and also don’t allow to install a wide list of blacklisted plugins which include W3 Total Cache and various other similar plugins which actually helps the WordPress site to leverage browser caching and improve load speed.

So, here’s how you can FIX IT?

As we don’t have direct access to the control panel of the hosting to edit the .htaccess file we are going to use a free WordPress Plugin which gives you a couple of tools like Import/Export, File Editor, Bulk Editor, etc. The plugin I’m talking here about is Yoast SEO.

So, before we start this always remember to keep a backup of your WordPress Site.

 

Step 1: In your WordPress Dashboard > Goto “Plugins” > Add New > Search for “Yoast SEO” > And install it.

OR

Download it from here. And install it on your WordPress Plugins.

Step 2: Once the Plugin is installed > Goto “Tools” section > Select “File Editor”

Yoast SEO Tools

Step 3: Goto .htaccess file heading and below the exisiting line paste the below code and save it.

## 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 ##

 

File Editor | htaccess file

The “1 month” or “1 year” that you see in the above lines/code is the period of time you are telling the browser to cache that particular file type. So, you can go ahead and change it if you think that 1 year is too long or so on. Please do comment below if you have any queries on the above tutorial.

2 thoughts on “How to Fix the Leverage Browser Caching in GoDaddy Managed WordPress Hosting?”

Leave a Reply