strip appropriate headers to cache json responses