Skip to content

Commit 33f6727

Browse files
committed
enable open file cache for main static root
1 parent eb2d2a9 commit 33f6727

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nginx/nginx.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ http {
116116
error_page 403 =404 /404;
117117
error_page 404 /404;
118118

119+
open_file_cache max=2048 inactive=1d;
120+
open_file_cache_valid 1d;
121+
119122
include snippets/security-headers.conf;
120123
add_header Cross-Origin-Resource-Policy "same-origin" always;
121124
gzip_static on;

0 commit comments

Comments
 (0)