if (location.href.indexOf("cache") != -1) 
{
window.replace("http://"+location.hostname+"/");
}
