Monday, February 5, 2018

Disabling Lightning Component Caching while developing in Lightning

Most of the time, developers has to refresh their page multiple times until they see the changes on their Lightning component. This is due because Salesforce enable caching of its client-side component to optimize performance on production. 

This can be bypass easily by disabling browser cache from Salesforce configuration. 
Here are the steps for disabling Browser cache:

Go to Setup > Security > Session Settings
Scroll to the section Caching
Uncheck Enable secure and persistent browser caching to improve performance

browser caching salesforce
Session Settings (Browser caching)
Note: THIS option should be enabled in production environment to avoid performance issues.

Additional resources:

No comments:

Post a Comment