I have a web page written in pure HTML (with a .html extension). Whenever I edit it and push “Refresh” in my browser, the page does not get updated. However, if I change the extension to .php this problem does not occur. Could someone explain to me what’s going on?
Share
Try hitting CTRL + Refresh or CTRL + F5. This should do a hard refresh and reload new content. This is only to do with Browser caching though.
There is also a specific meta tag which you can use to disable caching in the browser – see http://www.i18nguy.com/markup/metatags.html
Also, you can check your host and see if you’re using static content caching on the server.
For example – you can tell IIS to cache specific files for a certain amount of time using an Expires header.