From 2640b4e17350aa6b2c01383baabadf04e86efec2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 20 Mar 2017 12:11:14 -0400 Subject: [PATCH] FEATURE: add hook and asset path variable --- config/nginx.sample.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index c9eb893a7a0..46a865e3349 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -111,12 +111,13 @@ server { break; } - location ~ ^/assets/ { + location ~ ^/assets/(?.+)$ { 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; }