🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Prevent Browser Caching icon
Manutenção ativamente Testado com WP 7.1 #1 in browser cache

Prevent Browser Caching

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

Instalações ativas10K+Nível de 10K+
Downloads · 30d3.4K▼ -59% vs prev. 30d
Classificação4.9/529 reviews
Pontuação da saúde90/100Excelente
Downloads de todos os tempos155.7KSince Oct 2017
Suporte resolvido1 / 1100% nos últimos 2 meses
RequerWP 4.7Php 7.2+
Downloads · 7d753▼ -20.9% week over week
Nosso veredicto

Escolha segura

Yes — Prevent Browser Caching is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 2 months ago, and scores 90/100 on our health check.

  • Comprovado em escala em sites ativos de mais de 10 mil
  • Loved by users — 4.9/5 from 29 reviews
  • Testado com as últimas WordPress (7.1)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

7381.5K2.2KAug 31Oct 14Nov 28
Ontem58
Média diária (1y)132
Dia de pico2,95315 de outubro de 2026
Últimos 12 meses47.9K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Prevent Browser Caching stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
browser cache #7 5,918 Best browser cache plugins →
cache busting #3 585 Best cache busting plugins →
caching #2 7,292 Best caching plugins →
speed #98 6,369 Best speed plugins →
WP Cache #72 9,871 Best WP Cache plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 3.257.4%
  • 2.342.3%
  • Outros0.33%

Divisão de classificação

★★★★★★★★★★ 4.9 from 29 reviews

  • 5★96.6%
  • 4★0.00%
  • 3★3.4%
  • 2★0.00%
  • 1★0.00%

About Prevent Browser Caching

From the official readme · v3.2.2

Descrição

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.

O que ele faz

  • CSS & JS versions. WordPress loads assets with a “ver” URL parameter (e.g. 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.
  • Image versions. When you edit or replace a file in the Media Library, visitors get the new image instead of the cached one.
  • HTML page freshness. Asks browsers to check for a newer version of a page before showing a cached copy — fixes “I still see the old page on my phone”.
  • One-click update. The “Update versions” toolbar button forces fresh copies of all assets for every visitor — and shows a short report of what exactly happened.
  • Page cache stays in sync (opt-in). If a page-cache plugin is active, updating versions can also clear its cache — so cached HTML stops referencing the old file versions and every visitor sees the new site immediately. One checkbox turns it on, and after every update the plugin reports what was refreshed and what happened to the page cache. Works with WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, WP-Optimize, Breeze, Cache Enabler, Hummingbird, SiteGround Optimizer, Swift Performance and Comet Cache.
  • Faster repeat visits (opt-in, new in 3.2). Because versioning guarantees freshness, the plugin can safely serve your static files with one-year browser caching headers — the exact fix for the Lighthouse audit “Serve static assets with an efficient cache policy”. It writes the rules through WordPress’s own .htaccess API on Apache/LiteSpeed (removed again on deactivation), shows a ready-to-copy snippet for nginx, and then actually fetches one of your CSS files to verify the headers really work — the result is shown on the settings page.
  • Auto refresh after updates (opt-in, new in 3.2). Plugin, theme and WordPress updates change CSS and JS files. With this option every update — including automatic background updates — is followed by a version refresh (and a page-cache clear when that option is on), so visitors never see a broken layout after an update.
  • CLI & AI agents. WP-CLI commands (wp pbc update, wp pbc status) and WordPress Abilities let deploy scripts and AI agents update versions safely.

Safe by default

  • External URLs (payment scripts, CDNs, third-party services) are left untouched — some of them break when an unexpected “ver” parameter is added. You can turn external versioning back on with one checkbox.
  • Specific files (by part of the URL) or script/style handles can be excluded from versioning — CSS, JS and images alike.
  • If a page-cache plugin is active, the HTML freshness headers step aside automatically.
  • Another plugin’s page cache is never cleared unless you enable that yourself — the purge-on-update integration is opt-in, and the report after every update tells you whether the page cache was cleared or left alone.
  • The long-caching headers are opt-in too, and only available while CSS/JS versioning is on — the plugin never lets browsers hold files for a year without a way to bust them. Disabling the option (or deactivating the plugin) removes the rules completely.

Update modes

  • Automatically, when a file changes (recommended) — version = file modification time. Zero clicks, full caching.
  • Every time a page loads — development mode: CSS & JS are never cached (images and pages are unaffected). Use it only while actively developing.
  • Manually — versions change only when you press the “Update versions” button.

Para desenvolvedores

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

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

Abilities (AI agents & automation)

On WordPress 6.9+ the plugin registers two Abilities, discoverable via the Abilities API, REST and the MCP adapter — so AI agents and site-management tools can operate the plugin without custom glue code:

  • prevent-browser-caching/bump-versions — update the versions; optional boolean input purge (set false to skip the page-cache purge).
  • prevent-browser-caching/status — read-only report of the current configuration.

Both require the manage_options capability.

Legacy: earlier versions documented a prevent_browser_caching() function instead. It still works exactly as before — it disables the plugin’s admin settings and gives you full control — but I recommend the filter above: a bare function call in functions.php triggers a fatal error if the plugin is ever deactivated. If you keep using the function, guard it:

if ( function_exists( 'prevent_browser_caching' ) ) {
    prevent_browser_caching( array(
        'assets_version' => '123'
    ) );
}

Thank you

Many of the recent improvements started as reports and questions in the support forum — thank you to everyone who took the time to describe a problem or share an idea. If something doesn’t work as expected on your site, please open a topic there: it genuinely helps make the plugin better for everyone.

Instalação

From WordPress dashboard

  1. Visit “Plugins > Add New”.
  2. Search for “Prevent Browser Caching”.
  3. Install and activate Prevent Browser Caching plugin.

From WordPress.org site

  1. Download Prevent Browser Caching plugin.
  2. Upload the “prevent-browser-caching” directory to your “/wp-content/plugins/” directory.
  3. Activate Prevent Browser Caching on your Plugins page.

Log de Changes

Fix for sites where a caching plugin is installed with its page caching switched off (e.g. WP-Optimize used only for database cleanup): it is no longer treated as an active page cache, and the "Pages (HTML)" option works again in that case.

3.2.2

  • Improved: AI agents now see the plugin’s two Abilities directly. They are marked public for the Abilities API and the official WordPress MCP Adapter (meta.public, meta.mcp.public), carry the complete set of tool annotations, and are listed as first-class tools named prevent-browser-caching-bump-versions and prevent-browser-caching-status on the adapter’s default MCP server, so an agent no longer has to call discover-abilities first (opt out with the prevent_browser_caching_mcp_direct_tools filter). No other changes.

3.2.1

  • Fixed: a caching plugin that is installed but has its page caching switched off (for example WP-Optimize used only for database cleanup or image compression) is no longer treated as an active page cache. The “… is active, so page caching headers are left to it” note and the “Also clear the page cache” option now appear only when page caching is really enabled, and the “Pages (HTML)” option works in that situation instead of silently stepping aside. The check mirrors each supported plugin’s own on/off state and safely falls back to the previous behavior when that state can’t be read. Props @jcollier for the report.

3.2.0

  • New: “Let browsers keep static files for a year” (opt-in, in the new “Speed up” settings section) — serves CSS, JS, fonts and images with long-lived Cache-Control/Expires headers. Safe by design: versioned URLs change whenever a file changes, so visitors still get updates immediately. Fixes the Lighthouse audit “Serve static assets with an efficient cache policy”. On Apache/LiteSpeed the rules are written through WordPress’s own .htaccess API and removed again when the option is turned off or the plugin is deactivated/deleted; on nginx and multisite the settings page shows a ready-to-copy snippet instead.
  • New: the plugin verifies the long-caching headers by fetching one of the site’s own CSS files and shows the result on the settings page — so you know whether your server actually applied the rules (some hosts lack the needed Apache modules; the plugin tells you instead of silently assuming).
  • New: “Refresh versions automatically after plugin, theme or WordPress updates” (opt-in) — covers manual, bulk and automatic background updates, and clears the page cache when that option is on. Uses the least invalidation your mode allows: in the recommended automatic mode file versions already update by themselves, so only the page cache is cleared. Image versions are never touched by this feature.
  • New: a one-time “what’s new” note after upgrading, shown only on the plugin’s own settings page (dismissible; nothing is added anywhere else in wp-admin).
  • New for developers: the pbc_cache_policy_rules filter, the pbc_after_auto_bump action, and the PBC_DISABLE_HTACCESS_WRITE constant (force snippet-only mode, no file writes).
  • wp pbc status and the status ability now also report the cache-policy state (including the verification result) and the auto-refresh setting.
  • Fixed: a valueless “ver” query parameter no longer turns into “ver=.123” after a version update.

3.1.0

  • New: “Update versions” can now also clear the page cache when one of the supported caching plugins is active — WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, WP-Optimize, Breeze, Cache Enabler, Hummingbird, SiteGround Optimizer, Swift Performance, Comet Cache. Fixes “I updated the versions, but visitors still got the old design from the page cache”. Opt-in: a settings checkbox turns it on (off by default — another plugin’s cache is only touched when you say so). Each plugin is purged through its own public API; every call is guarded, and the version update always completes even if a purge fails.
  • New: after every “Update versions” click the plugin reports what happened — which asset types got new versions (per your settings) and whether the detected page cache was cleared. The report shows inline on the settings page and as a one-time notice after using the toolbar button.
  • New: WP-CLI support — wp pbc update [--skip-purge] and wp pbc status [--format=table|json|yaml].
  • New: on WordPress 6.9+ the plugin registers two Abilities for AI agents and automation, prevent-browser-caching/bump-versions and prevent-browser-caching/status (Abilities API / REST / MCP adapter; require the manage_options capability).
  • New for developers: the pbc_purge_page_cache filter (veto the purge) and the pbc_after_bump action (observe every version update and its purge outcome).
  • Fixed: image URLs inside RSS feeds no longer get a “ver” parameter.
  • Fixed: an existing “ver” query parameter in image URLs is now detected precisely — a “ver=” fragment inside another parameter name no longer counts as one.
  • Housekeeping: uninstall on multisite now cleans up networks with more than 100 sites.

3.0.0

  • New automatic mode (now the recommended default): the assets version is taken from the file modification time, so browser caching works at full strength and busts exactly when a file changes.
  • External URLs (payment scripts, CDNs) are no longer versioned by default — this used to break PayPal/Braintree/Authorize.net checkouts. A checkbox brings external versioning back; sites upgrading with saved settings keep their previous behavior until they switch.
  • New: image cache busting. Attachment URLs are versioned; editing or replacing a media file busts its cache.
  • New: HTML page freshness — optional Cache-Control header asking browsers to revalidate pages, plus a back/forward-cache guard for stale pages on mobile. Steps aside automatically when a page-cache plugin is detected.
  • New: exclusions list (URL substrings or script/style handles) and pbc_skip_src / pbc_assets_version filters for developers.
  • New: optional cache busting in the admin area.
  • New settings screen: a few clear switches, details unfold when you need them. Sites upgrading from 2.x get a one-click “Enable recommended settings” banner (reversible).
  • The toolbar button is now called “Update versions”: it updates the versions of CSS/JS files and images.
  • After activation the plugin opens its settings page.
  • Full backward compatibility: the prevent_browser_caching() function, all 2.x options and the filter timing work exactly as before.
  • Recommended for developers: use the pbc_assets_version filter instead of the prevent_browser_caching() function — unlike a bare function call, it never causes a fatal error if the plugin is deactivated.
  • Fixed: PHP warning “Cannot modify header information” when another plugin printed output before the cookie was set.
  • Fixed: the manual update button on the settings page submitted the whole form.
  • Housekeeping: uninstall now removes all plugin options (multisite-aware); all strings are translatable; added a POT file; direct-access guards on all files.
  • Raised the minimum PHP version to 7.2 (matches the WordPress minimum). Tested on PHP up to 8.5.

2.3.7

  • Fixed a bug with URLs that contain repeated query params: only the last one survived after adding the “ver” param. For example, Google Fonts URLs with several “family” params lost all font families except the last one.
  • Tested the plugin in WordPress 7.0.
  • Declared the minimum required PHP version (5.6).

Registro de change completo em WordPress.org →

Capturas de tela

The settings page: choose what to keep fresh, when to update versions (including automatically after plugin/theme/WordPress updates), whether to also clear the detected page cache, and whether browsers may keep static files for a year — with the header verification result right on the page.
The settings page: choose what to keep fresh, when to update versions (including…
Upgrading from 2.x: your settings keep working as before, and one click enables the recommended setup (reversible).
Upgrading from 2.x: your settings keep working as before, and one click enables the…
After a manual update the plugin reports what was refreshed and what happened to the page cache.
After a manual update the plugin reports what was refreshed and what happened to the page…

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Prevent Browser Caching alternatives

All browser cache plugins →

FAQ

Prevent Browser Caching: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is Prevent Browser Caching free?

Yes. Prevent Browser Caching is free to download and use from the official WordPress.org plugin directory.

Is Prevent Browser Caching safe to use in 2026?

Yes — Prevent Browser Caching is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 2 months ago, and scores 90/100 on our health check.

How many websites use Prevent Browser Caching?

Prevent Browser Caching is active on 10K+ WordPress websites and has been downloaded 155,668 times since it launched in October 2017. It was downloaded 3,372 times in the last 30 days.

Does Prevent Browser Caching work with WordPress 7.1?

Yes. The developer has tested Prevent Browser Caching up to WordPress 7.1.5, the latest release. It requires WordPress 4.7 or newer.

What PHP version does Prevent Browser Caching need?

Prevent Browser Caching requires PHP 7.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Prevent Browser Caching last updated?

The latest version, 3.2.2, was released on October 14, 2026 (2 months ago).

Who makes Prevent Browser Caching?

Prevent Browser Caching is developed and maintained by Kostya Tereshchuk.

What are the best alternatives to Prevent Browser Caching?

The most popular alternatives to Prevent Browser Caching are reBusted! (5K+ installs), Disable CSS JS Cache (400+ installs) and Disable Version Caching (200+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir