I have a webapp that works offline. I would like to set an expiration date to the cache so if the user does not reconnect to the server for a certain amount of time the cache is cleared and the user cannot use the application anymore.
I think the timer part is easy but I cannot find any way to delete programmatically the cache when I'm offline. I had found the way only when I'm online