Disable Caching During Development

Disable the secure and persistent browser caching setting in a sandbox or Developer Edition org to see the effect of any code changes without emptying the cache.

The caching setting improves page reload performance by avoiding extra round trips to the server.

Disabling secure and persistent browser caching has a significant negative performance impact on Lightning Experience. Always enable the setting in production orgs.

  1. From Setup, enter Session in the Quick Find box, and then select Session Settings.

  2. Deselect the checkbox for Enable secure and persistent browser caching to improve performance.

  3. Click Save.

After disabling the browser caching setting, you can reload a page to test your code changes without clearing your cache. We recommend that you reenable the browser caching setting after debugging your code.

See Also