sitegeist/klarschiff

Letzte Aktivität 25 Mar 2021 2 33089
composer require sitegeist/klarschiff

Flow Package to avoid browser caching for updated resources

v3.0.0

Version
v3.0.0
Type
neos-package
Release Date
Mar 25, 2021 13:08
Source
git
Distribution
zip
Requires
GPL-3.0+ 80b9c571aa15d27bb68c942b64beb35485da6957

Sitegeist.Klarschiff

Flow Package to avoid browser caching for updated resources

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.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de.

Usage

Fluid-ViewHelper klarSchiff:CacheBuster

{namespace klarSchiff=Sitegeist\KlarSchiff\ViewHelpers}
<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/sitegeist/Sitegeist.KlarSchiff/master/{f:uri.resource(path: 'resource://Vendor.Site/Public/Styles/Main.css')}?cb={klarSchiff:CacheBuster()}">

Eel-Helper SitegeistKlarSchiffCacheBuster

value = 'http://www.vandor.site.tld/some_path'
value.@process.addCacheBuster = ${value + '?cb=' + SitegeistKlarSchiffCacheBuster.get()}
value.@process.addCacheBuster.@if.isEnabled = ${SitegeistKlarSchiffCacheBuster.isEnabled()}

Reset cache

./flow cache:flushone Sitegeist_KlarSchiff_CacheBusterIdentifierCache

Configuration

The path Sitegeist.KlarSchiff.enabled in Settings.yaml allows to disable the cacheBusting. All identifiers will be "" in that case.

Installation

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.

The content of the readme is provided by Github
The same vendor provides 28 package(s).