An API to use HTML5 resources to Cache local data from a Rest Server