fix(cache-busting): Support hashed asset names

This commit is contained in:
Chris McKnight 2018-08-07 17:00:16 -05:00
parent c5c6602232
commit 006d7be396
No known key found for this signature in database
GPG Key ID: 08E46B1B5A143970
1 changed files with 1 additions and 1 deletions

View File

@ -5,6 +5,6 @@
# Read also this: github.com/h5bp/html5-boilerplate/wiki/cachebusting # Read also this: github.com/h5bp/html5-boilerplate/wiki/cachebusting
# This is not included by default, because it'd be better if you use the build # This is not included by default, because it'd be better if you use the build
# script to manage the file names. # script to manage the file names.
location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif)$ { location ~* (.+)\.(?:[0-9A-Za-z]+)\.(js|css|png|jpg|jpeg|gif)$ {
try_files $uri $1.$2; try_files $uri $1.$2;
} }