This reduces the overall page load time and makes your online experience faster. The logic behind it is that downloading static files from a WordPress hosting server located far away will take more time than reusing the resources from the user’s computer. This allows the browser to quickly display a webpage on your next visit. What is Browser Cache?īrowser cache is a technology used by most popular web browsers to save visited website’s data on a user’s computer. We will also explain what is browser cache and how browser caching works.
In this beginner’s guide, we will show you how to quickly clear your browser cache in all major browsers, step by step. Since you don’t need to clear browser cache for day to day internet use, most non-techy users are not familiar with the process. By the way touch() or alternatives work in many programming languages inclusive in javascript bash sh php and you can include or call them in html.When fixing common WordPress errors, one common piece of advice that you would often receive is to “clear your browser cache”.
It took me some time to resolve this issue (as many browsers act differently to different commands, but they all check time of files and compare to your downloaded copy in your browser, if different date and time, will do the refresh), If you can't go the supposed right way, there is always another usable and better solution to it. I suggest you just copy the most current scripts on the server and "do the touch thing" solution before your program runs, so it will change the date of all your problem files to a most current date and time, then it downloads a fresh copy to your browser:
Instead of clearing cache on my browsers, I realized that "touching" the server files cached will actually change the date and time of the source file cached on the server (Tested on Edge, Chrome and Firefox) and most browsers will automatically download the most current fresh copy of whats on your server (code, graphics any multimedia too). "clearing cache" is not as easy as it should be. Most articles say to add some sort of random string or version on the end of the CSS file as a GET request but that isn't working though I know that has worked for me in the past.
I've tried looking at other articles online about cache busting and other articles on Stack Overflow but I've tried to do most of what they suggest and I haven't seen any positive outcome yet. Another annoyance is that I am trying to listen to music in the browser so if I close chrome I have to go back and get my music playing again and it's just as of now extremely annoying and way more time consuming than I want.