[ 'except' => ['index'], ], 'nginxCache' => [ 'class' => NginxCache::class, 'rules' => [ 'index' => 3600, // 1h ], ], ]); } public function verbs() { return [ 'index' => ['GET'], ]; } public function actionIndex(): array { return [ 'reCaptchaPublicKey' => Yii::$app->reCaptcha->public, ]; } }