In the Scratch Org Definition Configuration Values documentation I don't see a way to default these settings that we want to make all the time to do Lightning Component development:

  • Setup -> Lightning Components -> Enable Debug Mode (want enabled)
  • Setup -> Session Settings -> Enable secure and persistent browser caching to improve performance (want disabled so Lightning Components are not cached so changes appear immediately)


  1. Is there a way to automatically default them via project-scratch-def.json?
  2. Is the scratch org always a clone of some other org that can have stuff manually pre-configured in it?

2 Answers 2


It looks like there is an answer to the browser caching issue now!

The documentation now includes "S1EncryptedStoragePref2" which is how you control the browser caching.

So you can include "disabled": ["S1EncryptedStoragePref2"] in your org config file.

I still don't know about lightning in debug though.


Based on a January "Technical Enablement for AppExchange Partners (Monthly)" Salesforce webinar (sorry can't find a link to this), the answer is "not yet".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .