\Pluf\Cache\MiddlewareRFC7234

Cache middleware

Add necessary directives to header of response to cache response in client side. Added directives to header of response in this middleware are based on RFC-7234.

Summary

Methods
Properties
Constants
process_response()
process_request()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

process_response()

process_response(\Pluf_HTTP_Request  $request, \Pluf_HTTP_Response  $response) 

Adds some directives to header of resonse to cache response in client side.

This method is base on information from below url:

Parameters

\Pluf_HTTP_Request $request
\Pluf_HTTP_Response $response

process_request()

process_request(\Pluf_HTTP_Request  $request) : boolean

Parameters

\Pluf_HTTP_Request $request

Returns

boolean —

false if ther is no problem otherwize ther is an error