I am developing a web site and just ran into a very disturbing problem. My code won't refresh in any browser, meaning not just Internet Explorer but also Google Chrome and Firefox.
The thing is, in a previous version of the HTML file, I have had a div with a link in it (<a href="">Send request</a>
). Today, I have changed that link into a paragraph (<p>Send request<p>
).
When I load my page, it still displays the link. When I commented out the paragraph and reloaded the page, there was no link and my paragraph was checked out. I checked the source file in Chrome and yes, the source file is correct. However, the browser still displays a link that doesn't exist, and deleting the browser history didn't help.
Any ideas?
Browser Cache If you are adding/modifying in-line CSS or JavaScript and not seeing the changes reflected in the HTML source, the page is likely being cached. The solution may be to purge the WordPress object cache, which stores our page caching (Batcache) renders.
If it doesn't tell the browser correctly that the file is outdated, the browsers won't download it again.
Right-click any area of the web page (including blank areas) and then select Inspect from the menu. Access the menu bar and click Develop, then select Show Web Inspector from the dropdown menu.
CSS changes are instantly updated but, in the case of HTML and JavaScript, you'll normally need to press Ctrl/Cmd + S to save the file to the file system then refresh the browser. Note that you can also right-click the file tab and select Save as… to save a copy of the file elsewhere.
You can try out the following
OR
Open the Browser in InCognito or Private Browsing Mode
OR
Try to put a meta tag in your HTML
<meta http-equiv="pragma" content="no-cache" />
The problem might be due to your Browser caching the HTML Page. This problem may be avoided by -
Clearing the Cache of your Browser
Try using a false query such as mypage.html?random=6 This method cause the browser to reload he page entirely on a GET request.
Use meta tags as below
<meta http-equiv="pragma" content="no-cache" />
This sometimes is accompanied by another meta in addition as follows
<meta http-equiv="expires" content="-1" />
It has been observed that sometimes both the above tags are ignored in IE. The suggested workaround is to use the tag twice, i.e. at start as well end of page. This is due to reason because first a 64K buffer is filled by browser on page load. if the buffer is not filled, the "pragma" is simply ignored. Placing this at end of document facilitates no-caching.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With