mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:12:26 +08:00
PERF: cache path for svg-sprite in upcoming FA5
We need to make sure NGINX caches all paths for SVG assets, this ensures only the first request for an svg sprite ever hits the app
This commit is contained in:
parent
6aea185ab4
commit
1824ac9d39
|
@ -191,7 +191,7 @@ server {
|
|||
# This big block is needed so we can selectively enable
|
||||
# acceleration for backups and avatars
|
||||
# see note about repetition above
|
||||
location ~ ^/(letter_avatar/|user_avatar|highlight-js|stylesheets|theme-javascripts|favicon/proxied|service-worker) {
|
||||
location ~ ^/(svg-sprite/|letter_avatar/|user_avatar|highlight-js|stylesheets|theme-javascripts|favicon/proxied|service-worker) {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Request-Start "t=${msec}";
|
||||
|
|
Loading…
Reference in New Issue
Block a user