Update site.py

pull/653/head
Mr Chen 5 months ago
parent eb480c8838
commit 3e9e7922b4
  1. 7
      web/utils/site.py

@ -1541,8 +1541,7 @@ location ^~ {from} {\n\
proxy_cache_key \"$host$uri$is_args$args\";\n\
proxy_cache_valid 200 304 301 302 {cache_time}m;\n\
"
tpl_proxy_nocache = "\n\
tpl_proxy_nocache_bak = "\n\
set $static_files_app 0; \n\
if ( $uri ~* \\.(gif|png|jpg|jpeg|css|js|ttf|woff|woff2)$\" )\n\
{\n\
@ -1554,6 +1553,10 @@ location ^~ {from} {\n\
add_header Cache-Control no-cache;\n\
}\n\
"
tpl_proxy_nocache = "\n\
add_header Cache-Control no-cache;\n\
"
tpl_proxy_cors = "\n\
add_header Access-Control-Allow-Origin *;\n\
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';\n\

Loading…
Cancel
Save