sitegeist/klarschiff

Last activity 11 days ago
  • 1
  • 24779
composer require sitegeist/klarschiff

Flow Package to avoid browser caching for updated resources

v2.1.5

Flow Package to avoid browser caching for updated resources

Version
v2.1.5
Type
neos-package
Release Date
08.01.2021 08:17:42
Source
git
Distribution
zip
Requires
  • neos/flow: ~4.0 || ~5.0 || ~6.0 || ~7.0 || dev-master
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
GPL-3.0+ 565d04e71798a171d9d309c737c99f6767c75aea

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()}

Reset cache

./flow cache:flushone Sitegeist_KlarSchiff_CacheBusterIdentifierCache

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 24 package(s).