diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-04-09 13:48:15 +0100 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-04-09 13:48:15 +0100 |
commit | 89dda613153c4869f3c9ce96f5cbc47f93f54723 (patch) | |
tree | 320e718965e5e843fe3950bd8c19cf4b9ad367a6 /synapse/http/server.py | |
parent | 0.27.3 (diff) | |
parent | Merge pull request #3029 from matrix-org/erikj/linearize_generate_user_id (diff) | |
download | synapse-89dda613153c4869f3c9ce96f5cbc47f93f54723.tar.xz |
Merge branch 'develop' into release-v0.27.0
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r-- | synapse/http/server.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index 1551db239d..f19c068ef6 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -488,6 +488,7 @@ def respond_with_json_bytes(request, code, json_bytes, send_cors=False, request.setHeader(b"Content-Type", b"application/json") request.setHeader(b"Server", version_string) request.setHeader(b"Content-Length", b"%d" % (len(json_bytes),)) + request.setHeader(b"Cache-Control", b"no-cache, no-store, must-revalidate") if send_cors: set_cors_headers(request) |