This feature is incredibly useful in Safari, especially if your report isn’t updating as expected and you’re confident your code is correct. Simply press Opt + Cmd + E, then refresh the page.
Note: To use the “Empty Caches” function, you must have the ‘Develop’ tab enabled. If it’s not already enabled, go to Safari settings, navigate to the ‘Advanced’ tab, and check the “Show features for web developers” option.
For troubleshooting and fault-finding, you can use the browser console. In Google Chrome, press Ctrl + Shift + J (Windows) or Cmd + Option + J (Mac) to open the console. In the console, you can view error messages, log outputs, and interact with the JavaScript code for your webpage. Other browsers, like Firefox and Safari, also have similar developer tools. Using these tools will help you identify and resolve any issues that may arise while working on your HTML stats report.