initial implementation of the offline AppCache logic