Static Resources in salesforce

To create a static resource:

  1. From Setup, enter Static Resources in the Quick Find box, then select Static Resources.
  2. Click New.
  3. In the Name text box, enter the text that should be used to identify the resource in Visualforce markup. This name can contain only underscores and alphanumeric characters and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
  4. In the Description text area, specify an optional description of the resource.
  5. Next to the File text box, click Browse to navigate to a local copy of the resource that you want to upload.
  6. A single static resource can be up to 5 MB in size, and an organization can have up to 250 MB of static resources, total
  7. Set the Cache-Control for user sessions, including API and Experience Cloud user sessions: Private specifies that the static resource data cached on the Salesforce server shouldn’t be shared with other users. The static resource is stored in the cache only for the current user’s session.
  • Public specifies that the static resource data cached on the Salesforce server is shared with other users in your organization for faster load times. After it’s cached, the resource is accessible to all Internet traffic, including unauthenticated users.

--

--

Tech enthusiastic, life explorer, single, motivator, blogger, writer, software engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alok Gupta

Tech enthusiastic, life explorer, single, motivator, blogger, writer, software engineer