added the code for app-cache