WP-Optimize
95Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...
Prevents browser cache problems: visitors always get the current version of your CSS, JS, images and pages, while caching keeps working.
Prevent Browser Caching is a WordPress plugin designed to ensure that visitors always see the most current version of your site without needing to clear their browser cache. It achieves this by automatically updating the versioning of CSS, JS, and images based on file modification times, while still allowing for efficient browser caching.
This plugin is suitable for site owners who frequently update their content and want to avoid issues with visitors seeing outdated versions of their pages. It also integrates with various page-cache plugins to maintain synchronization between cached HTML and updated assets.
Best for: This plugin suits WordPress site owners who regularly update their content and need to ensure visitors see the latest versions.
What it does well
Where it falls short
Prevent Browser Caching provides a practical solution for managing site updates and ensuring content freshness, particularly for active websites.
Kostya Tereshchuk's own description of Prevent Browser Caching, lightly tidied.
You changed the site, but a client or visitor still sees the old version and you have to say “please clear your browser cache”? This plugin makes that conversation unnecessary.
Prevent Browser Caching makes sure browsers always load the current version of your site — without disabling browser caching and slowing the site down.
style.css?ver=4.9.6). Browsers cache the file until this parameter changes. In the recommended automatic mode the plugin sets the version from the file’s own modification time: browser caching works at full strength, and the moment you update a file every visitor gets the new one.wp pbc update, wp pbc status) and WordPress Abilities let deploy scripts and AI agents update versions safely.The recommended way to set the CSS/JS version from code is the pbc_assets_version filter. Add this to the functions.php file of your theme and change the value whenever you need to update assets:
add_filter( 'pbc_assets_version', function( $ver ) {
return '123';
} );
Because it uses WordPress’s own add_filter(), it keeps working safely even if the plugin is ever deactivated — your site won’t break.
Filters for fine-tuning:
pbc_skip_src( $skip, $src, $handle ) — return true to leave a given asset URL untouched.pbc_assets_version( $ver, $src, $handle ) — change the version applied to a given asset.pbc_purge_page_cache( $purge, $plugin_name ) — return false to prevent the page-cache purge on version updates.pbc_after_bump( $result ) — action fired after every version update, with the new timestamp and the purge outcome.pbc_cache_policy_rules( $rules, $options ) — change the generated long-caching rules before they are written to .htaccess (or shown as a snippet).pbc_after_auto_bump( $context ) — action fired after an automatic post-update refresh, with the update type and the purge outcome.PBC_DISABLE_HTACCESS_WRITE — define this constant as true (e.g. in wp-config.php) and the plugin will never write to .htaccess itself; the settings page shows the rules for manual setup instead.wp pbc update — updates the versions (and clears the detected page cache when the settings option is on). Add --skip-purge to leave the page cache alone for that run.wp pbc status — shows the mode, what is versioned, the last manual update and the detected page-cache plugin. Supports --format=table|json|yaml.Other plugins for making sites fast.
Get caching and more with this powerful cache plugin. Cache, optimize images, clean your database and minify f...
All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...
Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...
Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...
Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...
Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...