pis #1
@ -39,8 +39,7 @@ http {
 | 
				
			|||||||
            gzip_static on;
 | 
					            gzip_static on;
 | 
				
			||||||
            brotli_static on;
 | 
					            brotli_static on;
 | 
				
			||||||
            error_page 404 /404.html;
 | 
					            error_page 404 /404.html;
 | 
				
			||||||
            expires 2d;
 | 
					            add_header Cache-Control "public, no-transform, max-age=1209600";
 | 
				
			||||||
            add_header Cache-Control "public, no-transform";
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        location /api/ {
 | 
					        location /api/ {
 | 
				
			||||||
@ -48,8 +47,7 @@ http {
 | 
				
			|||||||
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
 | 
					            proxy_cache_key $scheme://$host$uri$is_args$query_string;
 | 
				
			||||||
            proxy_ignore_headers Cache-Control;
 | 
					            proxy_ignore_headers Cache-Control;
 | 
				
			||||||
            proxy_cache_valid 200 2m;  # Evaluate whether 2m or 1m is more appropriate
 | 
					            proxy_cache_valid 200 2m;  # Evaluate whether 2m or 1m is more appropriate
 | 
				
			||||||
            expires 2m;
 | 
					            add_header Cache-Control "private, no-transform, max-age=120";
 | 
				
			||||||
            add_header Cache-Control "private, no-transform";
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        location /api/v1/list/ {
 | 
					        location /api/v1/list/ {
 | 
				
			||||||
@ -57,8 +55,7 @@ http {
 | 
				
			|||||||
            proxy_cache_key $scheme://$host$uri$is_args$query_string;
 | 
					            proxy_cache_key $scheme://$host$uri$is_args$query_string;
 | 
				
			||||||
            proxy_ignore_headers Cache-Control;
 | 
					            proxy_ignore_headers Cache-Control;
 | 
				
			||||||
            proxy_cache_valid 200 10080m;
 | 
					            proxy_cache_valid 200 10080m;
 | 
				
			||||||
            expires 7d;
 | 
					            add_header Cache-Control "public, no-transform, max-age=604800";
 | 
				
			||||||
            add_header Cache-Control "public, no-transform";
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user