use conditional caching on some json responses