https://github.com/flowpack/flowpack.cachebuster
Adds automatic cache busting for assets in the frontend for Flow & Neos CMS projects
https://github.com/flowpack/flowpack.cachebuster
neoscms
Last synced: 9 months ago
JSON representation
Adds automatic cache busting for assets in the frontend for Flow & Neos CMS projects
- Host: GitHub
- URL: https://github.com/flowpack/flowpack.cachebuster
- Owner: Flowpack
- License: mit
- Created: 2017-08-02T11:54:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T06:23:04.000Z (almost 3 years ago)
- Last Synced: 2025-05-30T08:55:10.709Z (10 months ago)
- Topics: neoscms
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 14
- Watchers: 11
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/flowpack/cachebuster)
[](https://packagist.org/packages/flowpack/cachebuster)
[](LICENSE)
# Flowpack.CacheBuster
Adds automatic cache busting for static resources in the frontend.
The output for those resources is modified by appending a shortened sha1 of the file like this
/_Resources/Static/Packages/Neos.NeosIo/Styles/Main.css?bust=3e9a4e48
## Installation
composer require flowpack/cachebuster
## Usage
This package provides an aspect which is automatically active
and enabled cache busting without any further modification.
### Compatibility with mod_pagespeed
Add the following to your webserver configuration to allow pagespeed
to optimize resources with the cache bust query parameter.
#### nginx
pagespeed Allow "*";
#### Apache
ModPagespeedAllow "*"
Or be more specific by just allowing the `*?bust=*`.