matrix-public-archive/test
Eric Eastwood 9b067f8637
Set `X-Date-Temporal-Context` header for easy cache rules (#209)
Set `X-Date-Temporal-Context: [past|present|future]` header for easy cache rules:

 - Cache `past` things heavily
 - Cache `present`/`future` things for 5 minutes
 
This accomplishes the goal we set out for:

> - We can cache all responses except for the latest UTC day (and anything in the future). ex. `/!aMzLHLvScQCGKDNqCB:gitter.im/date/2022/10/13`
>    - For the latest day, we could set the cache expire after 5 minutes or so
>
> *-- [Matrix Public Archive deployment issue](https://github.com/vector-im/sre-internal/issues/2079)*

And this way we don't have to do any fancy date parsing and comparison from the URL which is probably not even possible Cloudflare cache rules.
2023-05-04 13:42:59 -05:00
..
dockerfiles Add safe search filter for NSFW rooms (#208) 2023-05-03 04:45:33 -05:00
fixtures Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
server/matrix-utils Do our best to get the user to the right place and try joining `via` derived server name (#168) 2023-04-11 15:09:44 -05:00
shared/lib Add a way to select time of day (#139) 2023-04-05 04:25:31 -05:00
test-utils Follow tombstone and predecessor history (#167) 2023-04-19 01:26:15 -05:00
.eslintrc.json Migrate from `eslint-plugin-node` to `eslint-plugin-n` (#179) 2023-04-25 00:39:59 -05:00
docker-compose.yml Federated homeservers in Docker for e2e tests 2022-02-22 20:25:24 -06:00
e2e-tests.js Set `X-Date-Temporal-Context` header for easy cache rules (#209) 2023-05-04 13:42:59 -05:00