techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
Services
techinfoBiT
  • News
  • Startups
  • Tech
    • Internet
    • Security
  • WebMaster
    • All
    • GEO
    • SEO
    • Server & Hosting
    • Tools
    • WordPress
    'Sorry, This File Type Is Not Permitted for Security Reasons' How To Fix This Error in WordPress Website Development-techinfoBiT

    ‘Sorry, This File Type Is Not Permitted for Security Reasons’ How To Fix This Error in WordPress

    What is DMARC Record in DNS and Why It is Important For Email Security-techinfoBiT

    What is DMARC Record in DNS and Why It is Important For Email Security?

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server - techinfoBiT-SHA-256,Ubuntu Server, Server Solution, Linux Hashing, File Integrity, Cryptographic Hash, sha256sum, Hash Generation

    How To Generate SHA-256 Hash From the Command Line on Ubuntu Server

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024 - techinfoBiT

    Cloudflare To Deprecate Auto Minify Feature On August 5, 2024

    What is Google Analytics 4 and How to Setup GA4 for Websites - techinfoBiT

    What is Google Analytics 4 and How to Setup GA4 for Websites?

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily - techinfoBiT

    How To Use Multiple SPF Records In A Domain | Merge Multiple SPF Easily

  • Science Space
  • Gadgets
    • Laptop & PCs
    • Mobile Phones
    • Wearables
  • More
    • How-To Guides
    • Reviews
    • Telecom
    • Applications
    • Press Release
No Result
View All Result
techinfoBiT

Leverage Browser Caching to Improve Site Speed of WordPress Sites

Nishant Kumar by Nishant Kumar
December 27, 2018
Reading Time: 3 mins read
Share on FacebookShare on Twitter > XShare via WhatsAppShare on LinkedIn

Loading speed is one of the most important things for any websites whether it’s a simple blog or business portfolio sites, if your website is not loading fast enough then there is no point of having beautiful design and contents because most of the visitors are not going to wait long to load your web pages. The phrase “Leverage Browser Caching” actually means that different items on your site should have different expire times set.

This is recommended by Google, and it will improve your overall Google Page Speed Score. It can be done with the help you caching plugins like W3 Total Cache which can add the necessary codes on behalf of you but you need to make the file editable. Basically, if you are giving the proper permission to the caching plugins like W3 Total Cache or WP Super Cache then it will add the necessary codes on the configuration file on the server called .htaccess.

You might also like

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

June 3, 2026
How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

June 2, 2026

Related Post: How To Add Thumbnails to WordPress Posts | Enable Featured Image

How to Leverage Browser Caching (Apache)

If you are not using any caching plugins or unable to do it because of any reasons then you can also do it manually. To enable the Leverage Browsing Caching, you need to login to the server using the FileZilla, cPanel or any other FTP or SSH, and then go to the home directory and look for a file named .htaccess.

Now, select the .htaccess and open with any editor so that you can add the codes. Users accessing the file via cPanle’s file manager can right click on the file to get the option to open on the editor. If you are not able to find the file .htaccess then make sure you have enabled the option to show hidden files. In case you are unable to find the file even after enabling the “Show Hidden Files” then you may need to create the file, so right click inside the home directory and create the file with the file name as .htaccess and open in the editor. Once you opened the .htaccess file, you can proceed with adding the following codes; copy the following codes and save the file.

## EXPIRES 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 text/css "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 2 days"

## EXPIRES CACHING ##

If you are adding the above codes then your main static files (images, CSS, PDF’s, JS, etc.) will be cached in order to faster loading times in the future.

The given code will instruct the browser to cache different static resources like images, flash, PDF, JavaScript and icons for some specified period of time. However, you can also increase or decrease the values or time interval depending on your specific requirements.

Now you can check the performance of your website using the Google PageSpeed Tools and YSlow.

Leverage Browser Caching to Improve Site Speed of WordPress Sites - techinfoBiT

Tags: Apache ServerApps/WebAppsGoogle PageSpeed ToolsHow ToHow to Leverage Browser CachingInternetLeverage Browser CachingW3 Total CacheWebMasterWebMaster TipsWordPressWP Super CacheYSlow
ShareTweetSendShare
Previous Post

How To Add Thumbnails to WordPress Posts | Enable Featured Image

Next Post

How to Remove mcagent.exe from Notification Area Icons

Nishant Kumar

Nishant Kumar

Nishant is a passionate tech blogger and has been writing about technology since 2007. His insatiable love for gadgets has made him closely follow the advancements & innovations our society has made in terms of technology since a long while now. Nishant is a highly sought after reviewer with many manufacturers requesting his opinions about their products. He covers Mobile Phones, Gadgets, Tools and all kind of tech products to give consumers Genuine Reviews, Buying Guides and reliable news.

Related Articles

How to Install Let's Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Website - techinfoBiT

How to Install Let’s Encrypt SSL on Ubuntu 24.04 VPS, Free HTTPS for All Websites

by Nishant Kumar
June 3, 2026
0

One of the final and most important steps when launching a website or web application is enabling HTTPS. Whether you're hosting a WordPress website, a Spring Boot application, a Laravel...

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS-techinfoBiT

How to Deploy a Spring Boot Application with PostgreSQL on Ubuntu 24.04 VPS

by Nishant Kumar
June 2, 2026
0

Deploying a Spring Boot application on a VPS involves more than simply uploading application files to a server. A production deployment typically includes a Java runtime, a PostgreSQL database, a...

how to type in Hindi 2026, Hindi typing Windows 11, Google Input Tools alternative, type in Indian languages, Hindi phonetic keyboard Windows, Microsoft Indic Language Input Tool, Gboard Hindi typing-techinfoBiT

How to Type in Hindi and Indian Languages on Any Device in 2026

by techinfoBiT
May 31, 2026
0

If you have been searching for the Google IME offline installer lately, you already know the bad news. Google quietly discontinued the Windows installer years ago. The download links are...

Ubuntu Server How To Find Largest File In Directory Recursively - techinfoBiT

Ubuntu Server: How To Find Largest File In Directory Recursively

by Nishant Kumar
March 24, 2025
0

When managing an Ubuntu Server, disk space can quickly become an issue, especially if large files accumulate unnoticed. If you need to identify the biggest file within a directory (including...

Load More
Next Post
How to Remove mcagent.exe from Notification Area Icons - techinfoBiT

How to Remove mcagent.exe from Notification Area Icons

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.

techinfoBiT | Startup & Tech News, Reviews | WebMaster, How-To Guides-Tech Blog-Startup Blog India

techinfoBiT is your go-to source for the latest startup & tech news, technology reviews; WebMaster, SEO tips and how-to guides to help you stay updated and navigate the digital world know more

  • About
  • Contacts
  • Disclaimer
  • Privacy Policy

© 2012-2025 techinfoBiT | All Rights Reserved

No Result
View All Result
  • News
  • Startups
  • Tech
  • WebMaster
  • Gadgets
  • How-To Guides
  • Science Space
  • Services

© 2012-2025 techinfoBiT | All Rights Reserved