Hi,
first let me complement the developers of this library. Very clean design and I like the coding style (eg. names compared to some of the things from Boost). I hope this library grows.
My question is as follows: I have implemented an HTTP server based on the example. When a request for an image comes in, I read in the image file and stream it to the user. Here's the bit of code:
response.setChunkedTransferEncoding(true);
std::string contentType("image/");
contentType.append(fileType);
response.setContentType(contentType);
response.send().write((char *)blob.data(), blob.length());
For some reason the client browsers do not cache the images. I read in the specification about HTTP caching directives and I was wondering how those extra headers can be set in the response so the client caches the image. I looked over the API docs but no luck finding it.
Thanks





