On Mac, while the browser is running, click Safari in the top left hand corner. Then select Preferences, followed by Privacy. You can then press "Remove All Data..." to totally empty your cache. On the iPhone, open Settings and find the browser there. Then, select "Clear History and Website Data".