mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-14 09:45:51 +00:00
![]() We do a few things in this PR to better support caching: 1. Change `Cache-Control` header to allow intermediary proxies to cache media *only* if they revalidate on every request. This means that the intermediary cache will still send the request to Synapse but with a `If-None-Match` header, at which point Synapse can check auth and respond with a 304 and empty content. 2. Add `ETag` response header to all media responses. We hardcode this to `1` since all media is immutable (beyond being deleted). 3. Check for `If-None-Match` header (after checking for auth), and if it matches then respond with a 304 and empty body. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> |
||
---|---|---|
.. | ||
transport | ||
__init__.py | ||
test_complexity.py | ||
test_federation_catch_up.py | ||
test_federation_client.py | ||
test_federation_devices.py | ||
test_federation_media.py | ||
test_federation_out_of_band_membership.py | ||
test_federation_sender.py | ||
test_federation_server.py |