localStorage caching for posts