allignol / kirby-cache-buster
Cache buster for CSS and JS files
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:kirby-plugin
pkg:composer/allignol/kirby-cache-buster
Requires
- getkirby/cms: ^3.8 || ^4.0 || ^5.0
- getkirby/composer-installer: ^1.1
README
A simple and lightweight Kirby plugin to handle cache busting for CSS and JS files
Installation
Via Composer (recommended)
composer require allignol/kirby-cache-buster
Add the following rules to the .htaccess file at the root of your site:
# -------------------------------------------------------- # Cache busting for CSS / JS # -------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.([a-zA-Z0-9]+)\.(js|css)$ $1.$3 [L]