FEATURE: add hook and asset path variable

This commit is contained in:
Sam 2017-03-20 12:11:14 -04:00
parent 482578ba26
commit 2640b4e173

View File

@ -111,12 +111,13 @@ server {
break;
}
location ~ ^/assets/ {
location ~ ^/assets/(?<asset_path>.+)$ {
expires 1y;
# asset pipeline enables this
# brotli_static on;
gzip_static on;
add_header Cache-Control public,immutable;
# HOOK in asset location (used for extensibility)
# TODO I don't think this break is needed, it just breaks out of rewrite
break;
}