How to set header content-type text/event-stream? |
You should always use the Response object that is in every controller to set the headers instead of setting them directly now. Something like:
Code: $this->response->setHeader('Content-Type', 'text/event-stream'); By default - caching is turned off through the headers so you don't have to specify that. Unless changed it sets Cache-Control to no-store, max-age=0, no-cache. |
Messages In This Thread |
How to set header content-type text/event-stream? - by titounnes - 01-02-2019, 06:42 PM
RE: How to set header content-type text/event-stream? - by kilishan - 01-02-2019, 09:04 PM
RE: How to set header content-type text/event-stream? - by titounnes - 01-03-2019, 12:07 AM
|