tvl-depot/users/Profpatsch/openlab-tools
Profpatsch 7ec7f92812 fix(users/Profpatsch/openlab-tools): return 304 iff cache is same
Now this is getting cool. After 5 minutes we will ask the backend
again (which takes like 3 seconds), but then we compare the old cached
result with the new result and only send it back to the client iff it
changed.

So the client will still have to wait for the roundtrip time, but
doesn’t have to pay for the content. Plus, it gets some info that
upstream hasn’t been updated.

Change-Id: I6dba40321949da5da6a16b2e799d939573c77ba7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9811
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2023-10-20 18:36:46 +00:00
..
src fix(users/Profpatsch/openlab-tools): return 304 iff cache is same 2023-10-20 18:36:46 +00:00
default.nix fix(users/Profpatsch/openlab-tools): add cache headers 2023-10-20 18:19:43 +00:00
Main.hs feat(users/Profpatsch): init openlab-tools 2023-10-19 20:59:12 +00:00
openlab-tools.cabal fix(users/Profpatsch/openlab-tools): add cache headers 2023-10-20 18:19:43 +00:00