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:
parent
61287cdbe2
commit
1ab72aa258
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue