How to Leverage browser caching

How to Leverage browser caching

July 5, 2011 We can set the browser caching expiration using .htaccess file. Copy the code below and paste it in your .htaccess file. ## 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 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" </IfModule> ## EXPIRES CACHING ##

Related Posts

from my blog


Best Code Editor Solutions for Every Developer in 2021: The Ultimate Guide

August 20, 2021

Introduction: The life of a developer is no more than a roller coaster. They have to play codes with every single minute, which is not a handy thing. It requires...

The Ultimate Best Marketplace WordPress plugins in 2021

August 17, 2021

Using WordPress to build an online business has grown a lot easier over time. Well, owing to the availability of marketplace WordPress themes, setting up your multi-author online shop has...

What is a Version Control System? and Why You Need It

August 15, 2021

In an international firm, employees may have difficulty collaborating, keeping multiple versions of files, and backing up their data. All of these issues must be addressed in order for a...