0 follower

Final Class Yiisoft\HttpMiddleware\HttpCache\ETag

InheritanceYiisoft\HttpMiddleware\HttpCache\ETag

Represents an ETag (Entity Tag) used for HTTP caching.

An ETag is a unique identifier assigned to a specific version of a resource. It is used by clients to determine if the resource has changed since the last request.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\HttpMiddleware\HttpCache\ETag

Property Details

Hide inherited properties

$seed public property
public string $seed null
$weak public property
public boolean $weak false

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( string $seed, boolean $weak false )
$seed string

The seed value used to generate the ETag.

$weak boolean

Indicates whether the ETag is weak (if the content is semantically equal, but not byte-equal).

                public function __construct(
    public readonly string $seed,
    public readonly bool $weak = false,
) {
}