yii\web\Response::refresh PHP Method

refresh() public method

The effect of this method call is the same as the user pressing the refresh button of his browser (without re-posting data). In a controller action you may use this method like this: php return Yii::$app->getResponse()->refresh();
public refresh ( string $anchor = '' ) : Response
$anchor string the anchor that should be appended to the redirection URL. Defaults to empty. Make sure the anchor starts with '#' if you want to specify it.
return Response the response object itself
    public function refresh($anchor = '')
    {
        return $this->redirect(Yii::$app->getRequest()->getUrl() . $anchor);
    }