Fix JSON endpoints being cached