Cache.php
Same filename in this branch
Namespace
Symfony\Component\HttpKernel\AttributeFile
-
vendor/
symfony/ http-kernel/ Attribute/ Cache.php
View source
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpKernel\Attribute;
/**
* Describes the default HTTP cache headers on controllers.
* Headers defined in the Cache attribute are ignored if they are already set
* by the controller.
*
* @see https://symfony.com/doc/current/http_cache.html#making-your-responses-http-cacheable
*
* @author Fabien Potencier <fabien@symfony.com>
*/
final class Cache {
public function __construct(?string $expires = null, int|string|null $maxage = null, int|string|null $smaxage = null, ?bool $public = null, bool $mustRevalidate = false, array $vary = [], ?string $lastModified = null, ?string $etag = null, int|string|null $maxStale = null, int|string|null $staleWhileRevalidate = null, int|string|null $staleIfError = null) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Cache | Describes the default HTTP cache headers on controllers. Headers defined in the Cache attribute are ignored if they are already set by the controller. |