2018-11-23 17:14:15 +01:00
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
# | Filename-based cache busting |
|
|
|
|
# ----------------------------------------------------------------------
|
|
|
|
|
2019-05-15 18:38:05 +02:00
|
|
|
# If you're not using a build process to manage your filename version revving,
|
|
|
|
# you might want to consider enabling the following directives.
|
2018-11-23 17:14:15 +01:00
|
|
|
#
|
2019-05-15 18:38:05 +02:00
|
|
|
# To understand why this is important and even a better solution than using
|
|
|
|
# something like `*.css?v231`, please see:
|
2018-11-23 17:14:15 +01:00
|
|
|
# https://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
|
|
|
|
|
2021-01-05 10:43:36 +01:00
|
|
|
location ~* (.+)\.(?:\w+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ {
|
2018-11-23 17:14:15 +01:00
|
|
|
try_files $uri $1.$2;
|
|
|
|
}
|