Update caching
This commit is contained in:
@@ -39,7 +39,7 @@ http {
|
||||
gzip_static on;
|
||||
brotli_static on;
|
||||
error_page 404 /404.html;
|
||||
expires 3600;
|
||||
expires 3d;
|
||||
add_header Cache-Control "public, no-transform";
|
||||
}
|
||||
|
||||
@@ -52,6 +52,12 @@ http {
|
||||
add_header Cache-Control "private, no-transform";
|
||||
}
|
||||
|
||||
location /api/stats/ {
|
||||
proxy_pass http://backend;
|
||||
expires 20;
|
||||
add_header Cache-Control "public, no-transform";
|
||||
}
|
||||
|
||||
location /api/v1/list/ {
|
||||
proxy_pass http://backend;
|
||||
proxy_cache_key $scheme://$host$uri$is_args$query_string;
|
||||
|
||||
Reference in New Issue
Block a user