bug fix in caching post requests