neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit c5975ae56684a1188637f2bdba7d8e18de075abc
parent a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20
Author: John Keeping <john@keeping.me.uk>
Date:   Fri, 14 Aug 2015 12:47:22 +0100

ui-shared: cache errors for "dynamic TTL"

Most errors we generate are (potentially) transient, such as
non-existent object IDs so we don't want them to be cached forever.

Signed-off-by: John Keeping <john@keeping.me.uk>

Diffstat:
Mui-shared.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c @@ -791,6 +791,7 @@ void cgit_print_docend(void) void cgit_print_error_page(int code, const char *msg, const char *fmt, ...) { va_list ap; + ctx.page.expires = ctx.cfg.cache_dynamic_ttl; ctx.page.status = code; ctx.page.statusmsg = msg; cgit_print_http_headers();