I’m working on a server-side HTTP cache! It’s a Haskell WAI middleware. It’s controlled by Cache-Control
/ Vary
. It doesn’t have real storage backends yet, but it has a test that I’m really happy with and some thoughts about using caches against DoS attacks in the README.
Oh, also it’s probably a good example of OOP-ish Haskell. Thanks to GADTs, the CacheConf
constructor “eats” the backend types :D It’s like class Conf { BackendInterface backend; }
in Java/C#.