If you’d like to clear the cache in Safari you will need to enable the Developer menu.
In order to do that open Safari, at the top menu bar select Safari, Preferences or press “cmd + ,“.
At the Preferences menu select the Advanced tab, check the Show Develop menu in menu bar.
Once the Develop menu has been enabled, you can clear the cache from the Develop, Empty cache option. You can also use the cmd + alt + e keyboard shortcut.