Interface Yiisoft\HttpMiddleware\HttpCache\CacheControlProvider\CacheControlProviderInterface
| Implemented by | Yiisoft\ |
|---|
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\ |
Method Details
Returns a cache control header value for the given server request.
| public abstract string|null get ( \ | ||
| $request | \ |
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;
User Contributed Notes
Leave a comment
Join the conversation to share a note.