summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/data.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c
index 0ebe849ec..fdcfe647b 100644
--- a/content/fetchers/data.c
+++ b/content/fetchers/data.c
@@ -283,6 +283,12 @@ static void fetch_data_poll(lwc_string *scheme)
}
if (c->aborted == false) {
+ /* Set max-age to 1 year. */
+ fetch_data_send_header(c, "Cache-Control: "
+ "max-age=31536000");
+ }
+
+ if (c->aborted == false) {
msg.type = FETCH_DATA;
msg.data.header_or_data.buf =
(const uint8_t *) c->data;