From a25457768865a68ee0fdf1f78042ed058145d714 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 18 Dec 2024 13:59:27 +0000 Subject: [PATCH] PERF: Cache public extra-locales requests in nginx (#30340) extra-locales bundles have unique digests in their URLs, and include an indefinite cache-control header. Therefore we should include them in the heavily-cached group of URLs in NGINX. --- config/nginx.sample.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index dddec2374d7..09cf3068642 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -228,7 +228,7 @@ server { # This big block is needed so we can selectively enable # acceleration for backups, avatars, sprites and so on. # see note about repetition above - location ~ ^/(svg-sprite/|letter_avatar/|letter_avatar_proxy/|user_avatar|highlight-js|stylesheets|theme-javascripts|favicon/proxied|service-worker) { + location ~ ^/(svg-sprite/|letter_avatar/|letter_avatar_proxy/|user_avatar|highlight-js|stylesheets|theme-javascripts|favicon/proxied|service-worker|extra-locales/(mf|overrides)) { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Request-Start "t=${msec}";