https://github.com/bolt/asset-cachebuster
A Bolt 4/5 extension to bust cache for your assets
https://github.com/bolt/asset-cachebuster
Last synced: 3 months ago
JSON representation
A Bolt 4/5 extension to bust cache for your assets
- Host: GitHub
- URL: https://github.com/bolt/asset-cachebuster
- Owner: bolt
- License: mit
- Created: 2021-05-06T10:17:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T10:07:08.000Z (about 4 years ago)
- Last Synced: 2025-01-18T08:37:54.487Z (5 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bolt Asset Cachebuster Extension
Author: Ivo Valchev
A Bolt 4/5 extension to bust cache for your assets
## What does it do?
Adds a version cachebuster to your Twig assets.
```twig
```
Will output something like:
```html
```
The version string is a hashed substring of your `APP_SECRET`.
Therefore, whenever you need bust the cache, simply run:```bash
php bin/console bolt:reset-secret
```## Installation
```bash
composer require bolt/asset-cachebuster
```## Running PHPStan and Easy Codings Standard
First, make sure dependencies are installed:
```
COMPOSER_MEMORY_LIMIT=-1 composer update
```And then run ECS:
```
vendor/bin/ecs check src
```