private function clientAccessPolicyXmlHandler($request, $response)
{
if ($request->server['path_info'] === '/clientaccesspolicy.xml') {
if ($request->header['if-modified-since'] === $this->lastModified && $request->headers['if-none-match'] === $this->etag) {
$response->status(304);
} else {
$response->header('Last-Modified', $this->lastModified);
$response->header('Etag', $this->etag);
$response->header('Content-Type', 'text/xml');
$response->header('Content-Length', strlen($this->clientAccessPolicyXmlContent));
$response->write($this->clientAccessPolicyXmlContent);
}
$response->end();
return true;
}
return false;
}