Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

OpsDev.CacheBreaker

This package provides a ViewHelper and a Fusion object that work like their original counterparts, but appending cache breaking segment based on the file's md5.

Installation

Require the package via composer:

composer require "opsdev/cache-breaker"

Usage

Use as a Fluid ViewHelper

{namespace opsdev=OpsDev\CacheBreaker\ViewHelpers}
<link rel="stylesheet" href="{opsdev:resource(path: 'path/to/your/file.css', package: 'Vendor.YourPackageName')}" />

Use as a Fusion object

stylesheets.index = T:Tag {
    tagName = 'link'
    attributes {
        href = OpsDev.CacheBreaker:ResourceUri {
            path = 'path/to/your/file.css'
            package = 'Vendor.YourPackageName'
        }
        type = 'text/css'
        rel = 'stylesheet'
    }
}

Credits

The development of this package is partially sponsored by CodeQ web factory and St Philaret Christian Orthodox Institute.

Also the following persons have contributed to this package - thanks!

  • Dimitri Pisarev
  • Simon Schaufelberger

About

No description, website, or topics provided.

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.