Implemented caching for unsuccessful https post requests