fix: static file cache
This commit is contained in:
parent
8e7210a206
commit
cbf21a5942
@ -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/ {
|
||||
|
Loading…
Reference in New Issue
Block a user