Contents
If you are reading this post (not by accident), I can safely assume that you share with me the frustration with browser cache. For normal users, browser cache is great since it speeds up website loading, save bandwidth…
But for web developers, it’s something different:
Well, imagine you have changed some CSS to your button, you reload your browser, nothing changed!
Despite the fact that you have:
- Open developer tools, check clear browser cache
- Installed the best cache browsing addon/extensions you can find and clicked the clear cache button hundred times
- …
Still, your new style doesn’t show.
Browser cache is to blame.
If you feel the pain, read on.
I understand why browser makers implement caching. But, I wondered if there was a browser that doesn’t have cache so I don’t have to spend hours working on my code, wonder why it isn’t working only to realize that there is nothing wrong with my code but browser’s cache?
The browser without cache didn’t exist, until now
I tried to find that browser but it didn’t exists (during my search). So, accidentally, I think of selenium. It’s a browser automation tool that let us do a lot of cool things with browsers. (SEO guys are more familiar with this concept). It turned out, selenium is the solution to my problem.
I ended up creating a small javafx app to let me spawn browsers without cache to load my development websites.
And it worked perfectly.
Let me show you how it works.
How does the browser without cache work
This is the application:
Main interface
Settings interface
As you can see that, on the main interface, you can enter your URL, select the browser you want to spawn and click on start browser. You have two choices of browser, Chrome or Firefox.
On the settings panel, you need to set the path to Chrome driver and Firefox driver. What are they? You can download Chrome driver here:
And Gecko driver (Firefox) here:
Make sure you select the right version for your OS.
The favorite URL box is where you can enter list of URLs that you want to appear on the box on the left. Later, you can just double click on those URLs to open the browser.
Where to download the app
You can download the app here:
If you want to develop further, feel free to get the source code here:
https://github.com/datmt/NO-FUCKING-CACHE-BROWSER
Questions and suggestions are welcome.
didnt work, the jar cant be opened
You have to use the right tool to open the jar.