You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods :method:`Symfony\\Component\\HttpFoundation\\Response::setExpires`, :method:`Symfony\\Component\\HttpFoundation\\Response::setLastModified` and :method:`Symfony\\Component\\HttpFoundation\\Response::setData` accepts an immutable date object.
404
+
403
405
The :method:`Symfony\\Component\\HttpFoundation\\Response::setCache` method
404
406
can be used to set the most commonly used cache information in one method
405
407
call::
406
408
407
409
$response->setCache(array(
408
410
'etag' => 'abcdef',
409
-
'last_modified' => new \DateTime(),
411
+
'last_modified' => new \DateTime(), // Any object implementing \DateTimeInterface
0 commit comments