This package adds a eel helper and view helpers that can be used to create cache buster parameters. The cachebusters parameters are destinct for a given identifier (default = default) and are regenereated on every cache-flush.
- Martin Ficzel - ficzel@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.
{namespace klarSchiff=Sitegeist\KlarSchiff\ViewHelpers}
<link rel="stylesheet" type="text/css" href="{f:uri.resource(path: 'resource://Vendor.Site/Public/Styles/Main.css')}?cb={klarSchiff:CacheBuster()}">
value = 'http://www.vandor.site.tld/some_path'
value.@process.addCacheBuster = ${value + '?cb=' + SitegeistKlarSchiffCacheBuster.get()}
value.@process.addCacheBuster.@if.isEnabled = ${SitegeistKlarSchiffCacheBuster.isEnabled()}
./flow cache:flushone Sitegeist_KlarSchiff_CacheBusterIdentifierCache
The path Sitegeist.KlarSchiff.enabled
in Settings.yaml allows to disable the cacheBusting.
All identifiers will be "" in that case.
Sitegeist.Klarschiff is available via packagist. Just run composer require sitegeist/klarschiff
.
We use semantic-versioning so every breaking change will increase the major-version number.