Final Class Yiisoft\HttpMiddleware\HttpCache\ETag
| Inheritance | Yiisoft\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 Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $seed | string | Yiisoft\HttpMiddleware\HttpCache\ETag | |
| $weak | boolean | Yiisoft\HttpMiddleware\HttpCache\ETag |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\HttpMiddleware\HttpCache\ETag |
Property Details
Method Details
| 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,
) {
}
Signup or Login in order to comment.