UserFrosting API

NoCache

Middleware to add a 'Cache-Control' header to the response to prevent caching.

Tags
author

Alex Weissman (https://alexanderweissman.com)

Table of Contents

__invoke() Invoke the NoCache middleware, adding headers to the response to prevent caching. ResponseInterface

Methods

__invoke()

Invoke the NoCache middleware, adding headers to the response to prevent caching.

public __invoke( $request : ServerRequestInterface , $response : ResponseInterface , $next : callable ) : ResponseInterface
Parameters
$request : ServerRequestInterface

PSR7 request

$response : ResponseInterface

PSR7 response

$next : callable

Next middleware

Return values
ResponseInterface

Search results