diff --git a/config/nginx.conf b/config/nginx.conf index 93bb7ad5..e6b5b34c 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -78,7 +78,12 @@ http { root /frontend; index index.html; try_files $uri @index; - + + #Application config + location = src/resources/app-config.json { + add_header Cache-Control no-cache; + expires 0; + } # Media: images, icons, video, audio, HTC location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ { expires 1M; @@ -92,6 +97,7 @@ http { access_log off; add_header Cache-Control "max-age=31556952, public"; } + } location @index {