private function crossDomainXmlHandler($request, $response) { if ($request->server['path_info'] === '/crossdomain.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->crossDomainXmlContent)); $response->write($this->crossDomainXmlContent); } $response->end(); return true; } return false; }