Skip to content

Commit a591a0c

Browse files
authored
DOC-1766: Update Performance Optimization Page (#29425)
DOC-1766: Update Performance Optimization Page
1 parent 75d88b0 commit a591a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/setup/system-requirements/performance-optimization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ To enable ``HTML compression``, add the following lines into your ``nginx.conf``
111111
112112
# Three weeks for media: images, fonts, icons, video, audio etc.
113113
location ~* \.(?:jpg|jpeg|gif|png|ico|tiff|woff|eot|ttf|svg|svgz|mp4|ogg|ogv|webm|swf|flv)$ {
114-
expires 3w;
114+
if ( -f $request_filename ) { expires 3w; add_header "Cache-Control" "public"; }
115+
try_files $uri /index.php$is_args$args;
115116
access_log off;
116-
add_header Cache-Control public;
117117
}
118118
}
119119

0 commit comments

Comments
 (0)