To clear web cache in Safari 8, use the following steps

Choose History

Choose Clear History and website data.

On the drop down menu, choose the time frame of all history.

This will clear all history, cookie and other website data.

Close all open Safari windows, restart the browser, go to the sign-in page for QuickBooks Online and try again.