0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 08:23:56 +01:00

modules/client/sync: Add response cache directive.

This commit is contained in:
Jason Volk 2020-08-09 09:47:25 -07:00
parent 61287cdbe2
commit 1ab72aa258

View file

@ -252,10 +252,15 @@ ircd::m::sync::handle_get(client &client,
)
};
static const http::header response_headers[]
{
{ "Cache-Control", "public, max-age=31536000, immutable" }
};
// Start the chunked encoded response.
resource::response::chunked response
{
client, http::OK, buffer_size
client, http::OK, response_headers, buffer_size
};
// Start the JSON stream for this response. As the sync items are iterated