enabling caching for json requests