Skip to content

Commit 5f4fcf3

Browse files
Expand static files caching (#901)
Support static files caching
1 parent 89b2ec4 commit 5f4fcf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etc/nginx/conf/nginx.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ http {
9797
{{ location.body }}
9898
}
9999
{% else %}
100-
if ($request_uri ~ ^/(.*\.(css|js)|forms/.*|img/.*|pages/.*|mxclientsystem/images/.*)\?[0-9]+$) {
100+
if ($request_uri ~ ^/((.*\.(css|js)|forms/.*|img/.*|pages/.*|mxclientsystem/images/.*)\?[0-9]+|dist/chunks/.*\.js|.*\.(woff2?|ttf|otf|eot))$) {
101101
expires 1y;
102102
}
103103
{% if location.path == "/" %}

0 commit comments

Comments
 (0)