Let me restate the above answer, because the forum text parser destroyed my command lines, turning some of the symbols into "italics" indicators.
I'm running iOS in a simulator to debug multiple CSS issues in a webpage, and this cost me TWO HOURS today.
This is for the the latest Xcode on the latest MacOS (Sequoia 15.5) as of July 2025.
With the simulator open, run the following command to list your most recently used simulator container:
ls -tr ~/Library/Developer/CoreSimulator/Devices/ | tail -n 1
This will get you a GUID like 2780B427-BB9B-4570-AC1B-7043BADB800C
Open Safari in the simulator at least once. You can leave it open for this operation as well. Run the following:
rm -rf ~/Library/Developer/CoreSimulator/Devices/[GUID FROM ABOVE]/data/Containers/Data/Application/*/Library/Caches/com.apple.mobilesafari/*
Then hit the "home" icon in the toolbar of the simulator twice, to bring up the app switcher, and swipe Safari up to kill it.
Launch Safari again and it will reload everything, guaranteed. You can run the command before or after you kill Safari, but you do need to run it at least once every time before relaunching.
Nearly twenty years of iOS development... And this is what it takes to perform one of the most basic web developer operations.