commit e49c837

default  ·  2024-10-06 08:01:31 +0000 UTC
parent 7774a68
Don't cache a page if an error is set.
1 files changed,  +2, -0
M html.c
M html.c
+2, -0
1@@ -2783,6 +2783,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 
3     /* get a possible error message */
4     const char *error = xs_dict_get(q_vars, "error");
5+    if (error != NULL)
6+        cache = 0;
7 
8     /* a show of 0 has no sense */
9     if (show == 0)