3
0
Fork 0

+ Add cache HTTP headers

small_fixes
kelson42 12 years ago
parent 3e0bd1ae80
commit e027ec4e8d

@ -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,

Loading…
Cancel
Save