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

1.0.1 2026-01-08 17:05 UTC

This package is auto-updated.

Last update: 2026-01-08 17:09:01 UTC


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]