Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Cache.php

Same filename in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/Cache.php
  2. 11.1.x vendor/squizlabs/php_codesniffer/src/Util/Cache.php
  3. 11.1.x core/lib/Drupal/Core/Cache/Cache.php

Namespace

Symfony\Component\HttpKernel\Attribute

File

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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal