Prevent Browser Caching icon
Performance & Caching

Prevent Browser Caching

Prevents browser cache problems: visitors always get the current version of your CSS, JS, images and pages, while caching keeps working.

  • By Kostya Tereshchuk
  • v3.2.2
  • Updated

Overview

Prevent Browser Caching describes itself as: “Prevents browser cache problems: visitors always get the current version of your CSS, JS, images and pages, while caching keeps working.”

It is active on 10,000+ WordPress sites and rated 4.9 out of 5 by 29 users on WordPress.org. Developers can extend it through 6 actions and 5 filters, listed below.

We haven't published a hands-on review of Prevent Browser Caching yet. Want one, or need help with it? Send us a request.

How to install Prevent Browser Caching

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Prevent Browser Caching” and pick the one by Kostya Tereshchuk.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install prevent-browser-caching --activate

Requirements: WordPress 4.7+ · PHP 7.2+ · tested up to WordPress 7.1.4

Hooks & customisation

Prevent Browser Caching 3.2.2 fires 6 actions and 5 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

prevent-browser-caching — top hooks
// Fires after an automatic post-update refresh.
do_action( 'pbc_after_auto_bump', array( 'type' => $type, 'bumped' => $bumped, 'purge' => $purge ) );

// Fires after the versions are bumped (and the page cache purge attempted).
do_action( 'pbc_after_bump', $result );

// Filters the generated .htaccess cache-policy rules.
apply_filters( 'pbc_cache_policy_rules', $rules, $options );

// Whether the plugin's abilities are listed as first-class tools on the MCP Adap…
apply_filters( 'prevent_browser_caching_mcp_direct_tools', true );

// Filter in includes/class-prevent-browser-caching.php
apply_filters( 'pbc_purge_page_cache', true, $purge['plugin'] );

// Action in includes/class-prevent-browser-caching-integrations.php
do_action( 'breeze_clear_all_cache' );

Browse all 11 hooks with examples →

Need Prevent Browser Caching customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Kostya Tereshchuk. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Performance & Caching

See all →

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

7+ million installs Reviewed 178 hooks

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faster Sites and Happy Visitors.

1+ million installs Reviewed 163 hooks

A very fast caching engine for WordPress that produces static html files.

1+ million installs Reviewed 42 hooks

The simplest and fastest WP Cache system

1+ million installs 22 hooks