The main reason to clear them is to fix website loading problems or for privacy. Other reasons include broken cache files or syncing issues with iCloud. The cache for browsers like Safari, Chrome, and Firefox is saved in different places on a Mac, both in local folders and in system storage.
How to Clear the Search History and Cache on Safari Version 8 and Later
How to Clear the Safari Cache Using Terminal
How to Clear the Search History and Cache on Safari 7 and Older Versions
How to Clear the Search History and Cache on Firefox
How to Clear Search History and Cache on Google Chrome









