0

Interface Yiisoft\HttpMiddleware\HttpCache\ETagValueNormalizer\ETagValueNormalizerInterface

Implemented byYiisoft\HttpMiddleware\HttpCache\ETagValueNormalizer\NoopETagValueNormalizer, Yiisoft\HttpMiddleware\HttpCache\ETagValueNormalizer\SuffixETagValueNormalizer

Normalizes raw ETag values obtained from the If-None-Match request header before comparing them with the application generated ETag value.

Normalization is needed when an intermediary (for example, a web server compression module such as Apache mod_deflate or mod_brotli) modifies the ETag header value by appending a suffix (-gzip, -br, etc.).

Public Methods

Hide inherited methods

Method Description Defined By
normalize() Returns the normalized ETag value. Yiisoft\HttpMiddleware\HttpCache\ETagValueNormalizer\ETagValueNormalizerInterface

Method Details

Hide inherited methods

normalize() public abstract method

Returns the normalized ETag value.

public abstract string normalize ( string $value )
$value string

The raw ETag value (without quotes and W/ prefix) to normalize.

return string

The normalized ETag value.

                public function normalize(string $value): string;