busted
busted copied to clipboard
WordPress plugin that forces browsers to load the most recent file if modified.
=== Busted! === Contributors: pdclark Plugin URI: https://github.com/pdclark/busted Author URI: http://pdclark.com Tags: browser cache, develop, debug, client, clear, empty, refresh Requires at least: 3.4 Tested up to: 4.2 Stable tag: 1.4 License: GPLv2 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Force browsers to load the most recent file if modified.
== Description ==
Saves you from asking "have you emptied your cache?".
Features
- Safe to leave running on live sites.
- Only refreshes browser cache for a file if it has been modified.
- Resolves Content Delivery Network (CDN) issues. No need to purge CDN cache.
- Multisite compatible.
- "Just works" — no configuration necessary.
Requirements
Requires scripts use any of the below functions to load. Almost all files meet these requirements. The only case it doesn't account for is when URLs are hard-coded. This shouldn't ever be done, since it can break sites for other reasons.
Photo credit: Brent Schneeman – cc
== Installation ==
- Search for "Busted" under
WordPress Admin > Plugins > Add New - Install the plugin.
- Activate the plugin.
== Changelog ==
= 1.4 =
- Fix: Enable for stylesheets, not just JavaScript. Thanks @francescolaffi.
- Fix: Enable in wp-admin. For real this time.
- Fix: Hopefully suppress mysterious notice on login screen. Thanks @norcross.
= 1.3 =
- New: Change version slug to 'b-modified' to avoid user confusion.
= 1.2 =
- New: Enable in wp-admin. Thanks @norcross.
= 1.1 =
- New: Only refresh cache if file has been modified. Thanks @unserkaiser.
= 1.0 =
- Initial public release.
== Upgrade Notice ==
= 1.4 =
- Fix: Enable for stylesheets, not just JavaScript. Thanks @francescolaffi.
- Fix: Enable in wp-admin. For real this time.
- Fix: Hopefully suppress mysterious notice on login screen. Thanks @norcross.