Recently I migrated from hestia apache2 nginx server to apache2 nginx php-fpm server. Everything seems ok but i’ve noticed slow content download for documents.
At first stage server returns part of html. After a while it returns the rest.
I have an assumption fastcgi_finish_request is the cause of the problem. I’ve tried to disable fastcgi cache for wp-admin via code below. But it seems function fastcgi_finish_request still exists.
Probably it’s not related to fastcgi_finish_request.
location / {
proxy_pass https://209.124.84.135:8443;
if ($request_uri ~* "/wp-admin/*") {
set $no_cache 1;
}
location ~* ^.+\.(css|htm|html|js|json|xml|apng|avif|bmp|cur|gif|ico|jfif|jpg|jpeg|pjp|pjpeg|png|svg|tif|tiff|webp|aac|caf|flac|m4a|midi|mp3|ogg|opus|wav|3gp|av1|avi|m4v|mkv|mov|mpg|mpeg|mp4|mp4v|webm|otf|ttf|woff|woff2|doc|docx|odf|odp|ods|odt|pdf|ppt|pptx|rtf|txt|xls|xlsx|7z|bz2|gz|rar|tar|tgz|zip|apk|appx|bin|dmg|exe|img|iso|jar|msi|webmanifest)$ {
try_files $uri @fallback;
root xxx;
access_log xxx;
access_log xxx;
expires 10800;
}
}
What could be the cause of this problem?