Checking of internet connection by requesting an image does not work after the image gets cached in the browser. After one or two time, this doesn’t work as the image is stored in the browser’s cache so is there any solution for that? Or what do I need to check whether a connection is available or not? window.navigator.online is not reliable. so looking for the other interesting and reliable solution.
Checking of internet connection by requesting an image does not work after the image
Share
The perfect solution for checking internet connectivity is to give a ajax call to your server to the dummy page and make that dummy page’s entry in the application cache manifest file in the network section so that it may not get cached in the browser, otherwise it wl take that file from browser and show you as online even if u are in offline mode.