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.
How to install Prevent Browser Caching
- Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
- Search for it. Type “Prevent Browser Caching” and pick the one by Kostya Tereshchuk.
- 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 --activateRequirements: 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.
// 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' );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.