I'm working on a web application, and as a beginner web developer, I have trouble working out the cache manifest. The goal is for the webpage to load its cached file if the user is offline, and if the user is online, the webpage will refresh itself and cache the updated file. So far, my cache.manifest file looks like this:
CACHE MANIFEST
index.htm
This caches the page to be accessible offline just fine, but if the user refreshes the URL online, it'll still display the old cached file, even if I updated the page. How can I solve this?