Interface Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\CacheControlProviderInterface
| Implemented by | Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\ConstantCacheControlProvider, Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\NullCacheControlProvider |
|---|
Interface for Cache-Control header value providers. Given a request, it generates a header value.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| get() | Returns a cache control header value for the given server request. | Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\CacheControlProviderInterface |
Method Details
Returns a cache control header value for the given server request.
| public abstract string|null get ( \Psr\Http\Message\ServerRequestInterface $request ) | ||
| $request | \Psr\Http\Message\ServerRequestInterface |
The server request for which to generate the cache control value. |
| return | string|null |
The cache control header value or null if no cache control is applicable. |
|---|---|---|
public function get(ServerRequestInterface $request): ?string;
Signup or Login in order to comment.