Hi, first of all thanks for this great web server, have been using it for years now!
I wrote a basic content management system that has a built-in caching mechanism and wrote for it a
module [github.com] that sets the X-Hiawatha-Cache each time a page is cached. The performance increase after caching with X-Hiawatha-Cache is amazing!
The only issue I have is that if a user login the pages will still be served from the hiawatha cache. So I don't know if it would be possible to add an option to hiawatha to skip cached pages if the visitor has certain cookies set. In PHP case lets say I send the PHPSESSID to the visitor, when the visitor sends a request back to hiawatha it could parse the cookies and if the cookie PHPSESSID is set then skip the cache and do normal processing. Something like:
CacheSkipCookie = "phpsessid", "other_cookie", "etc..."
So when any of those cookies is detected on client request, then cache is skipped and content served normally. An option like that could work globally and per vhost.