added cache
This commit is contained in:
parent
bd3f7cb695
commit
f4fe33e27f
1 changed files with 7 additions and 2 deletions
|
|
@ -78,7 +78,12 @@ http {
|
||||||
root /frontend;
|
root /frontend;
|
||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri @index;
|
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
|
# 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)$ {
|
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ {
|
||||||
expires 1M;
|
expires 1M;
|
||||||
|
|
@ -96,7 +101,7 @@ http {
|
||||||
|
|
||||||
location @index {
|
location @index {
|
||||||
root /frontend;
|
root /frontend;
|
||||||
add_header Cache-Control no-cache;
|
add_header Cache-Control "no-cache";
|
||||||
expires 0;
|
expires 0;
|
||||||
try_files /index.html =404;
|
try_files /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue