2013-08-02 113 views

回答

1

一下添加到LoginController中(控制器,它使用的登錄)

before_filter :set_cache_buster 

    def set_cache_buster 
    response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate" 
    response.headers["Pragma"] = "no-cache" 
    response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT" 
    end 

這將清除瀏覽器的歷史

See here

相關問題