support caching POSTs in test mode
support cache expiry