Skip to content

Commit

Permalink
Update site.py
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 19, 2024
1 parent 3bf1573 commit a9bc4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/utils/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ def setProxy(self, site_name, site_from, to, host, name, open_proxy, open_cors,
# PROXY-END"

tpl_proxy_cache = "\n\
if ( $uri ~* \\.(gif|png|jpg|css|js|ttf|woff|woff2)$\" )\n\
if ( $uri ~* \\.(gif|png|jpg|jpeg|css|js|ttf|woff|woff2)$\" )\n\
{\n\
expires {cache_time}m;\n\
}\n\
Expand All @@ -1544,7 +1544,7 @@ def setProxy(self, site_name, site_from, to, host, name, open_proxy, open_cors,

tpl_proxy_nocache = "\n\
set $static_files_app 0; \n\
if ( $uri ~* \\.(gif|png|jpg|css|js|ttf|woff|woff2)$\" )\n\
if ( $uri ~* \\.(gif|png|jpg|jpeg|css|js|ttf|woff|woff2)$\" )\n\
{\n\
set $static_files_app 1;\n\
expires 12h;\n\
Expand Down

0 comments on commit a9bc4fe

Please sign in to comment.