Final Class Yiisoft\HttpMiddleware\HttpCache\ETag
| Inheritance | Yiisoft\ |
|---|
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\ |
|
| $weak | boolean | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
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,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.