summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/html.c b/html.c
index 19ab6b7..11c1918 100644
--- a/html.c
+++ b/html.c
@@ -1875,7 +1875,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1875 if (cache && history_mtime(&snac, h) > timeline_mtime(&snac)) { 1875 if (cache && history_mtime(&snac, h) > timeline_mtime(&snac)) {
1876 snac_debug(&snac, 1, xs_fmt("serving cached local timeline")); 1876 snac_debug(&snac, 1, xs_fmt("serving cached local timeline"));
1877 1877
1878 status = history_get(&snac, h, body, b_size, NULL, NULL); 1878 status = history_get(&snac, h, body, b_size,
1879 xs_dict_get(req, "if-none-match"), etag);
1879 } 1880 }
1880 else { 1881 else {
1881 xs *list = timeline_list(&snac, "public", skip, show); 1882 xs *list = timeline_list(&snac, "public", skip, show);
@@ -1903,7 +1904,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1903 if (cache && history_mtime(&snac, "timeline.html_") > timeline_mtime(&snac)) { 1904 if (cache && history_mtime(&snac, "timeline.html_") > timeline_mtime(&snac)) {
1904 snac_debug(&snac, 1, xs_fmt("serving cached timeline")); 1905 snac_debug(&snac, 1, xs_fmt("serving cached timeline"));
1905 1906
1906 status = history_get(&snac, "timeline.html_", body, b_size, NULL, NULL); 1907 status = history_get(&snac, "timeline.html_", body, b_size,
1908 xs_dict_get(req, "if-none-match"), etag);
1907 } 1909 }
1908 else { 1910 else {
1909 snac_debug(&snac, 1, xs_fmt("building timeline")); 1911 snac_debug(&snac, 1, xs_fmt("building timeline"));
@@ -1992,7 +1994,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1992 status = 404; 1994 status = 404;
1993 } 1995 }
1994 else 1996 else
1995 status = history_get(&snac, id, body, b_size, NULL, NULL); 1997 status = history_get(&snac, id, body, b_size,
1998 xs_dict_get(req, "if-none-match"), etag);
1996 } 1999 }
1997 } 2000 }
1998 else 2001 else