PHP Class Imbo\EventListener\HttpCache

This event listener will listen to all outgoing responses and check if any HTTP cache headers have explicitly been set. If not, it will apply the configured defaults.
Author: Espen Hovlandsdal ([email protected])
Inheritance: implements Imbo\EventListener\ListenerInterface
Datei anzeigen Open project: imbo/imbo

Public Methods

Method Description
getSubscribedEvents ( )
setHeaders ( Imbo\EventManager\EventInterface $event ) Right before the response is sent to the client, check if any HTTP cache control headers have explicity been set for this response. If not, apply the configured defaults.

Method Details

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

setHeaders() public method

Right before the response is sent to the client, check if any HTTP cache control headers have explicity been set for this response. If not, apply the configured defaults.
public setHeaders ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance