Drag the link below to your bookmarks, or alternativelly, right click it and hit "Bookmark this link" (in Firefox).
Refresh Stylesheets
How it works:
(function(){
var s = document.getElementsByTagName("link");
for(var i = 0; i < s.length; i++)
s[i].href += (s[i].href.search(/\?/) >= 0 ? "&" : "?")
+ "random=" + Math.round(Math.random()*10000);
})();
It simply loops through the stylesheets in the current document and appends a random integer to their urls ("random=XYZ"). Since the stylesheet url with the extra query string parameter does not exist in the browser's cache, the browser fetches the newly updated stylesheet.
This can be repeated multiple times, the stylesheet url will just have multiple query string "random" parameters.

0 comments:
Post a Comment
Anyone can write comments. However they will not show up immediately, as they will be checked for spam, relevance, etc...