Skip to content

Commit

Permalink
templator cache 404 1m
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne00n committed Feb 13, 2021
1 parent 489fe7f commit aff1fe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Class/templator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def nginxHTTPS(self,domain,target):
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|woff2|svg)$ {
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_valid 404 1m;
proxy_set_header Host '''+target+''';
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit aff1fe7

Please sign in to comment.