Download the PHP package bvdputte/kirby-fingerprint without Composer
On this page you can find all versions of the php package bvdputte/kirby-fingerprint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bvdputte/kirby-fingerprint
More information about bvdputte/kirby-fingerprint
Files in bvdputte/kirby-fingerprint
Package kirby-fingerprint
Short Description Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3
License MIT
Informations about the package kirby-fingerprint
Kirby Fingerprint
A little utility to add cache-busting fingerprints to assets (JS/CSS) in Kirby CMS.
Re-uses the css()
and js()
-helpers in Kirby as much as possible.
When the files are updated, new hashes are added to the filenames automatically; so browser cache gets busted.
Installation
- unzip master.zip as folder
site/plugins/kirby-fingerprint
or git submodule add https://github.com/bvdputte/kirby-fingerprint.git site/plugins/kirby-fingerprint
composer require bvdputte/kirby-fingerprint
Apache .htaccess rules
💡 Add the following to your .htaccess
file:
Place immediately after the RewriteBase
definition.
Nginx rules
Add the following to your virtual host setup:
Usage
Options
-
Disable plugin:
- Use a parameter instead of a hashed filename:
This can be useful in situations where you don't want/can work with rewrites (e.g. in Laravel Valet). If possible; don't use parameters in production environment, use hashed filenames instead.
Advanced features
For more advanced features, such as subresource integrity, please checkout bnomei's kirby3-fingerprint plugin.
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.