Activity Forums Salesforce® Discussions What is a Static Resource in Salesforce? Reply To: What is a Static Resource in Salesforce?

  • Parul

    September 22, 2018 at 5:02 pm

    Static resources allow you to upload content that you can reference in a Visualforce page. Resources can be archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.
    Static resources are managed and distributed by Lightning Platform, which acts as a content distribution network (CDN) for the files. Caching and distribution are handled automatically.

    Static resources are referenced using the $Resource global variable, which can be used directly by Visualforce, or used as a parameter to functions such as URLFOR().