support page refreshing when offline