2017 © Pedro Peláez
 

neos-package klarschiff

Flow Package to avoid browser caching for updated resources

image

sitegeist/klarschiff

Flow Package to avoid browser caching for updated resources

  • Friday, June 16, 2017
  • by mficzel
  • Repository
  • 2 Watchers
  • 0 Stars
  • 327 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 129 % Grown

The README.md

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., (*1)

Authors & Sponsors

  • Martin Ficzel - ficzel@sitegeist.de

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

Usage

Fluid-ViewHelper klarSchiff:CacheBuster

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

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., (*3)

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., (*4)

The Versions

16/06 2017

dev-master

9999999-dev

Flow Package to avoid browser caching for updated resources

  Sources   Download

GPL-3.0+

The Requires

 

15/05 2017

v2.1.0

2.1.0.0

Flow Package to avoid browser caching for updated resources

  Sources   Download

GPL-3.0+

The Requires

 

09/05 2017

v2.0.0

2.0.0.0

Flow Package to avoid browser caching for updated resources

  Sources   Download

GPL-3.0+

The Requires

 

19/05 2016

v1.0.0

1.0.0.0

Flow Package to avoid browser caching for updated resources

  Sources   Download

GPL-3.0+

The Requires