An open API service indexing awesome lists of open source software.

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

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
```