mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ Add cache HTTP headers
This commit is contained in:
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) */
|
/* Force to close the connection - cf. 100% CPU usage with v. 4.4 (in Lucid) */
|
||||||
MHD_add_response_header(response, "Connection", "close");
|
MHD_add_response_header(response, "Connection", "close");
|
||||||
|
|
||||||
|
/* Force cache */
|
||||||
|
MHD_add_response_header(response, "Cache-Control", "max-age=87840, must-revalidate");
|
||||||
|
|
||||||
/* Queue the response */
|
/* Queue the response */
|
||||||
int ret = MHD_queue_response(connection,
|
int ret = MHD_queue_response(connection,
|
||||||
httpResponseCode,
|
httpResponseCode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user