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


How Much Money Can Freelance Web Developers Earn?

January 10, 2025

Freelance web developer is an exciting career path that gives you flexibility, creativity, and the potential to earn a high income. However, how much can a freelance web developer earn?...

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