After logout if i press the back button in the browser, it should not show the previous page, it has to go to default page (login page only).

So i have tried in many ways(ruby on rails application) like "history.forward()" ,"onbeforeunload", expire cache in meta tag, "http://www.brookebryan.com/ back button detection" so many .. i am very confused.

can anyone suggest a solution?