aboutsummaryrefslogtreecommitdiffstats
path: root/pacredir.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-09-15 13:57:27 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-09-15 15:38:47 +0200
commitac886bea59fe3e8b9b136f2a650b43dafae6a1b3 (patch)
tree35d242a1537ef464896083e93d56a8b19ed5503e /pacredir.c
parent9bebcd9c517e575a023be0d1843acc4054d1363e (diff)
downloadpacredir-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index 0366888..c5cc23f 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -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);
}