A easy way to refresh browser
Blogs20122012-07-08
A easy way to refresh browser
Sometimes when debugging web codes, we need to frequently access same URL, like:
http://localhost/path/test.html
The browser normally uses its cache instead of reloading new URL, so probably *NOT* refresh your CSS/JS effects. So you have to clear browser cache to force the reloading; or hold on Alt-key which sometimes may not work.
Here I introduce a simple way to refresh URL: adding a dummy parameter followed by URL. This way will force browser to reload URL instead of using cache.
# first time:
http://localhost/path/test.html?t=1
# second time:
http://localhost/path/test.html?t=2
# third time:
http://localhost/path/test.html?t=n
...Every time only if the parameter t is changed, the URL will reload.
It is much better than clear browser caches, which will delete all your data which you don’t want to at all.
