bnomei / kirby3-fingerprint

File Method and css/js helper to add hash to files
https://forum.getkirby.com/t/kirby-3-fingerprint-asset-cachebuster/23576
MIT License
37 stars 3 forks source link

Readme: Outdated regex in "Nginx virtual host setup" #20

Closed sebastiangreger closed 4 years ago

sebastiangreger commented 4 years ago

We discovered this while setting up bvdputte/kirby-fingerprint on an Nginx server, but cross-posting the issue here as it appears in your Readme as well.

This doesn't work:

location ~ (.+)\.(?:\d+)\.(js|css)$ {
    try_files $uri $1.$2;
}

The \d in the regex does not catch the alphanumeric strings.