diff options
author | Christian Hesse <mail@eworm.de> | 2022-09-15 13:57:27 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-09-15 15:38:47 +0200 |
commit | ac886bea59fe3e8b9b136f2a650b43dafae6a1b3 (patch) | |
tree | 35d242a1537ef464896083e93d56a8b19ed5503e /pacredir.c | |
parent | 9bebcd9c517e575a023be0d1843acc4054d1363e (diff) | |
download | pacredir-ac886bea59fe3e8b9b136f2a650b43dafae6a1b3.tar.gz pacredir-ac886bea59fe3e8b9b136f2a650b43dafae6a1b3.tar.zst |
use http header 'Cache-Control: no-cache' for soft failure
This is standard header...
Diffstat (limited to 'pacredir.c')
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -578,7 +578,7 @@ response: page = malloc(strlen(PAGE404) + strlen(basename) + 1); sprintf(page, PAGE404, basename); response = MHD_create_response_from_buffer(strlen(page), (void*) page, MHD_RESPMEM_MUST_FREE); - ret = MHD_add_response_header(response, "X-Pacman-Expected-Failure", "true"); + ret = MHD_add_response_header(response, "Cache-Control", "no-cache"); ret = MHD_queue_response(connection, MHD_HTTP_NOT_FOUND, response); } |