Make assets cache public in docker container
This commit is contained in:
parent
cd64985500
commit
0b254f1c87
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ server {
|
||||||
location ~ assets\/.*\.(?:css|js|woff2?|svg|gif|map)$ {
|
location ~ assets\/.*\.(?:css|js|woff2?|svg|gif|map)$ {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
add_header Cache-Control "max-age=31536000";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
# access_log off;
|
# access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue