0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 12:48:54 +02:00

modules/client/sync: Remove cache control; fix empty response cache.

This commit is contained in:
Jason Volk 2020-08-21 06:16:44 -07:00
parent 99acb1bc15
commit e0d6c653f7

View file

@ -252,15 +252,10 @@ 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, response_headers, buffer_size
client, http::OK, buffer_size
};
// Start the JSON stream for this response. As the sync items are iterated