Хорошо, вот заголовки:
Код: Выделить всё
Response headers (434 B)
Access-Control-Allow-Credentials
true
Cache-Control
no-store, no-cache, must-revalidate
Connection
keep-alive
Content-Length
11000
Content-Type
application/json; charset=UTF-8
Date
Fri, 01 Mar 2019 06:01:46 GMT
Expires
Thu, 19 Nov 1981 08:52:00 GMT
Pragma
no-cache
Server
nginx/1.10.3 (Ubuntu)
X-Debug-Duration
36
X-Debug-Link
/debug/default/view?tag=5c78caca2b699
X-Debug-Tag
5c78caca2b699
Request headers (405 B)
Accept
text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8
Accept-Encoding
gzip, deflate
Accept-Language
ru,en-US;q=0.7,en;q=0.3
Connection
keep-alive
Cookie
advanced-frontend=uvln8np2a56jlaeauk1rddqbq2
Host
limehd.local
Upgrade-Insecure-Requests
1
User-Agent
Mozilla/5.0 (X11; Ubuntu; Linu…) Gecko/20100101 Firefox/58.0
грузится полторы минуты, для этого попробовал так:
Код: Выделить всё
public function afterAction($action, $result)
{
$result = parent::afterAction($action, $result);
if(!Yii::$app->response->headers->has('Content-Length')) {
Yii::$app->response->headers->set('Content-Length', 11000);
}
return $result;
}
вообще как в для yii/rest/Controller определить такой заголовок?