mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
modules/client/sync: Remove cache control; fix empty response cache.
This commit is contained in:
parent
99acb1bc15
commit
e0d6c653f7
1 changed files with 1 additions and 6 deletions
|
@ -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.
|
// Start the chunked encoded response.
|
||||||
resource::response::chunked 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
|
// Start the JSON stream for this response. As the sync items are iterated
|
||||||
|
|
Loading…
Reference in a new issue