2012-07-22 23:31:54 +02:00
|
|
|
# Built-in filename-based cache busting
|
|
|
|
|
|
|
|
# https://github.com/h5bp/html5-boilerplate/blob/5370479476dceae7cc3ea105946536d6bc0ee468/.htaccess#L403
|
|
|
|
# This will route all requests for /css/style.20120716.css to /css/style.css
|
|
|
|
# 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
|
|
|
|
# script to manage the file names.
|
2013-02-24 21:40:13 +01:00
|
|
|
location ~* (.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif)$ {
|
|
|
|
try_files $uri $1.$2;
|
2012-07-22 23:31:54 +02:00
|
|
|
}
|