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".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.