WordPress plugin intelligence profile

Disable CSS JS Cache

Prevent browser caching of CSS and JS files in WordPress and control static asset caching headers.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.2.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.5 · PHP 7.4
Directory statusactive
Last directory update5 Sept 20261mo ago
Active installations400Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Disable CSS JS Cache version 1.2.0 as active, updated 1mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Disable CSS JS Cache is a lightweight plugin that helps WordPress developers and site administrators control browser caching for CSS and JavaScript files. Ideal for development, testing, or any time you need browsers to always load the freshest files.

Key Features

  • Cache Busting — Appends a dynamic version parameter to CSS/JS URLs so browsers skip the cache
  • Two Busting Methods — Force Refresh (timestamp, every page load) or Smart Refresh (file modification time, only when the file actually changes)
  • File-Type Control — Apply cache busting to both CSS & JS, CSS only, or JS only
  • Strip Existing Version — Remove WordPress’s built-in?ver= before adding ours, preventing duplicate parameters
  • Per-Page Override — Disable cache busting on individual pages or posts via a meta box in the editor (new in 1.2.0)
  • CDN Support — Optionally apply cache busting to external/CDN-hosted files
  • Exclude Paths — Skip specific files or URL fragments
  • Browser Caching (.htaccess) — Add long-lived Cache-Control headers for images, CSS, JS, and PDF files
  • Configurable Cache Duration — 60 seconds up to 1 year
  • Admin Bar Quick Toggle — One-click enable/disable from the toolbar
  • Statistics Dashboard — See how many CSS and JS files have been processed
  • Clear Cache Button — Flush WordPress object cache and compatible caching plugins in one click
  • Admin Notice — Optional reminder when cache busting is active (handy for production sites)
  • Clean Uninstall — Removes all settings and.htaccess rules when the plugin is deleted

How It Works

ver= query string to every CSS and JS URL loaded on the frontend. Browsers treat each new URL as a fresh request, ignoring any cached copy. Choose Force Refresh for development (version changes every page load) or Smart Refresh for production (version changes only when the file timestamp changes).

htaccess browser-caching feature writes Cache-Control headers so returning visitors load static assets straight from their browser cache.

Use Cases

  • Development — See theme/plugin changes instantly without clearing your browser cache
  • Staging — Verify the latest files are loaded during QA
  • Production — Enable browser caching for performance while still being able to bust the cache on demand
  • Troubleshooting — Quickly rule out stale-cache issues

Technical Details

Developer Hooks

Action

do_action( ‘disable_css_js_cache_cleared’ ) — fires when the Clear Cache button is clicked.

Filters (WordPress core, used by this plugin)

style_loader_src, script_loader_src

Constants

DISABLE_CSS_JS_CACHE_VERSION — current plugin version string DISABLE_CSS_JS_CACHE_FILE — absolute path to the main plugin file DISABLE_CSS_JS_CACHE_DIR — absolute path to the plugin directory (with trailing slash)<h3>Requirements</h3>

5 or higher

4 or higher

* Apache with mod_headers (browser-caching feature only)

htaccess (browser-caching feature only)

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • browser cache
  • css
  • javascript
  • performance
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.5 · PHP 7.4
Update activity5 Sept 20261mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.1.01.2.0
WordPress compatibility7.0.47.1
WordPress requirement5.05.5
PHP requirement7.07.4
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.