I wrote a small library called
plug_cache_control to serve as a convenience when working with response
cache_control headers. Maybe you already got it from the name but the library exposes a plug but not only. A few helper functions are also there. You can find more about them and the plug in the documentation.
I’ll be happy to answer questions and don’t hesitate to file issues and propose changes.