Kirby <3 CDN

Generally speaking, it’s not possible for PHP’s built-in webserver to accept .htaccess directives (as it doesn’t rely on Apache), so you’d have to activate & test cachebusting in production - see the docs, section “Multi-environment setup” (for a quick example, check out my StarterKit).

You may activate the cachebuster plugin with c::set('cachebuster', true); inside a production-specific config file, eg config.example.com.php (inside site/config).

When using a CDN, be safe & use protection - give kirby-sri a try, which includes cachebusting functionality (or check out the forum post first).