Still showing the older version of Lightning Components in browser ??

 Technical Lead  @ Salesforce   Practice  @ Zen4orce   | PD1 | MCTS | Salesforce | Lightning | .NET | SharePoint | jQuery/UI | JavaScript | BootStrap | Aura

Technical Lead @Salesforce Practice @Zen4orce | PD1 | MCTS | Salesforce | Lightning | .NET | SharePoint | jQuery/UI | JavaScript | BootStrap | Aura

by Mustafa Jhabuawala


Component Caching Settings

This is one of my favorites that a lot of people are struggling with these days.

The settings you really need to aware of while developing lightning components.

Problem – When you are in development mode, you modify a component then you try to refresh your browser and it still shows you the old version of that component and then you keep doing refresh and wonder why it’s not showing you your changes

Solution – It’s because lightning framework caches component at the client side, avoiding extra round trips to the server to load the definition of a component

During development, this can irritate a developer the solution is Component Cache Settings



Enable secure and persistent browser caching to improve performance” – Uncheck this option

This will disable the browser caching and the component definition will be loaded from the server every time, so you don’t have to hit refresh multiple times.

Note – This setting is selected by default for all orgs. Salesforce doesn’t recommend disabling this setting.

Disable this setting only in development phase.

Happy Coding 🙂

Useful links –

Modify Session Security Settings