mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 02:05:11 +08:00
feat: frontend docker nginx configuration add brower cache accelerated pages access (#7125)
* Update py_autofix.yml * feat: frontend docker nginx add brower cache accelerate page access * Revert "Update py_autofix.yml" This reverts commit7aed45e986. * revert py_autofix.yml * Revert "Update py_autofix.yml" This reverts commit7aed45e986. * add: remove blank line * fix: update Nginx configuration to prevent caching for index.html --------- Co-authored-by: tianzhipeng <tzpabc@gmail.com> Co-authored-by: caojianwei-jk <caojianwei-jk@360shuke.com>
This commit is contained in:
@ -27,7 +27,15 @@ http {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
expires 1d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
location = /index.html {
|
||||
root /usr/share/nginx/html;
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
etag on;
|
||||
}
|
||||
|
||||
location /api {
|
||||
proxy_pass ${BACKEND_URL};
|
||||
}
|
||||
|
||||
@ -13,6 +13,8 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
expires 1d;
|
||||
add_header Cache-Control "public";
|
||||
}
|
||||
location /api {
|
||||
proxy_pass __BACKEND_URL__;
|
||||
|
||||
Reference in New Issue
Block a user