plugin-icon

Leverage Browser Caching

By Rinku Y·
Speed up WordPress with browser caching. Automatically adds expiry headers for images, CSS, JS & fonts via .htaccess Zero config (Apache only)
Ratings
4.1
Version
2.7
Active installations
10K
Last updated
Jun 29, 2026
Leverage Browser Caching

Leverage Browser Caching is a lightweight, zero-configuration WordPress plugin that dramatically improves your website’s loading speed by instructing visitors’ browsers to cache static files locally.

With a single activation, the plugin writes optimized browser caching rules to your .htaccess file. When you deactivate the plugin, those rules are cleanly removed — leaving your .htaccess exactly as it was.

Why Browser Caching Matters

Every time a visitor loads a page, their browser downloads CSS, JavaScript, images, and fonts. Without caching, those same files are re-downloaded on every single visit — wasting bandwidth and slowing down your site.

Browser caching tells the visitor’s browser to store those static files locally for a set period. On their next visit, the browser serves them from its local cache instead of fetching them from the server again. The result: faster page loads, lower server load, and a better user experience.

What This Plugin Does

  • Adds browser caching expiry headers to your .htaccess file on plugin activation.
  • Removes them cleanly on plugin deactivation — no leftover code.
  • Requires zero configuration — install, activate, and it works.
  • Covers all major static asset types:
    • Images — JPEG, PNG, GIF, WebP, AVIF, SVG, ICO
    • Web Fonts — WOFF, WOFF2, TTF
    • Stylesheets — CSS
    • Scripts — JavaScript
    • Documents — HTML, XHTML, PDF
    • Data — JSON
    • Other — SWF

Improve Your PageSpeed Score

This plugin directly fixes the “Leverage Browser Caching” or “Serve static assets with an efficient cache policy” warning shown by:

  • Google PageSpeed Insights
  • GTmetrix
  • Pingdom Website Speed Test
  • WebPageTest
  • YSlow

Cache Expiry Periods

Asset Type Cache Duration

Images (JPEG, PNG, GIF, WebP, AVIF, SVG, ICO) 1 Year

Web Fonts (WOFF, WOFF2, TTF) 1 Year

CSS, JavaScript 1 Month

HTML, PDF, JSON 1 Month

Everything else 1 Month

Requirements

  • Apache web server with mod_expires module enabled.
  • A writable .htaccess file in your WordPress root directory.
  • This plugin does not work on Nginx or IIS servers.
Freeon paid plans
Tested up to
WordPress 7.0
This plugin is available for download for your site.