perf(nginx): add open_file_cache to reduce overlay2 filesystem overhead
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,11 @@ server {
|
|||||||
gzip_types text/plain text/css application/json application/javascript image/svg+xml;
|
gzip_types text/plain text/css application/json application/javascript image/svg+xml;
|
||||||
gzip_min_length 256;
|
gzip_min_length 256;
|
||||||
|
|
||||||
|
open_file_cache max=1000 inactive=30s;
|
||||||
|
open_file_cache_valid 60s;
|
||||||
|
open_file_cache_min_uses 2;
|
||||||
|
open_file_cache_errors on;
|
||||||
|
|
||||||
# Long-cache static assets (CSS, JS, images, fonts)
|
# Long-cache static assets (CSS, JS, images, fonts)
|
||||||
location ~* \.(css|js|woff2?|ttf|otf|eot|svg|webp|png|jpg|jpeg|ico|gif)$ {
|
location ~* \.(css|js|woff2?|ttf|otf|eot|svg|webp|png|jpg|jpeg|ico|gif)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
|
|||||||
Reference in New Issue
Block a user