mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Update runtime-responses.md
This commit is contained in:
@ -67,7 +67,7 @@ $headers = Yii::$app->response->headers;
|
||||
$headers->add('Pragma', 'no-cache');
|
||||
|
||||
// set a Pragma header. Any existing Pragma headers will be discarded.
|
||||
$headers->add('Pragma', 'no-cache');
|
||||
$headers->set('Pragma', 'no-cache');
|
||||
|
||||
// remove Pragma header(s) and return the removed Pragma header values in array
|
||||
$values = $headers->remove('Pragma');
|
||||
|
Reference in New Issue
Block a user