+ Add cache HTTP headers

This commit is contained in:
kelson42 2013-06-17 15:41:06 +02:00
parent 3e0bd1ae80
commit e027ec4e8d

View File

@ -368,6 +368,9 @@ static int accessHandlerCallback(void *cls,
/* Force to close the connection - cf. 100% CPU usage with v. 4.4 (in Lucid) */
MHD_add_response_header(response, "Connection", "close");
/* Force cache */
MHD_add_response_header(response, "Cache-Control", "max-age=87840, must-revalidate");
/* Queue the response */
int ret = MHD_queue_response(connection,
httpResponseCode,