To create a static resource:
- From Setup, enter Static Resources in the Quick
Find box, then select Static Resources.
- Click New.
- 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.
- In the Description text area, specify an optional description of
the resource.
- Next to the File text box, click Browse to
navigate to a local copy of the resource that you want to upload.
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.
- Set the Cache Control:
-
Private
specifies that the static resource data cached on the Salesforce server
shouldn’t be shared with other users. The static resource is only stored in
cache for the current user’s session.
- Public
specifies that the static resource data cached on the Salesforce server be shared
with other users in your organization for faster load times.
The W3C specifications on Header Field
Definitions has more technical information about cache-control.
- Click Save.