fix: static file cache

This commit is contained in:
chenos 2022-12-17 09:11:01 +08:00
parent 8e7210a206
commit cbf21a5942

View File

@ -13,12 +13,19 @@ server {
location /storage/uploads/ {
alias /app/nocobase/storage/uploads/;
add_header Cache-Control "public";
access_log off;
autoindex off;
}
location / {
root /app/nocobase/packages/app/client/dist;
try_files $uri $uri/ /index.html;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache';
if_modified_since off;
expires off;
etag off;
}
location ^~ /api/ {