Avoid Using The File Download Servlet To Reference Static Resources

< 1 min read

Impact Area

Manageability

Severity

Medium

Affected Element

Apex Page

Rule ID #

SF-0135

Impact #

Images should be included in APEX pages through static resources. Using the Download servlet url is less efficient from a performance point of view and is also typically associated with a hardcoded sysid.

Remediation #

Use static resources to serve JavaScript files, as well as images, CSS, and other non-changing files. JavaScript and other assets served this way benefit from the caching and content distribution network (CDN) built into Salesforce.

Time to fix #

30 min

Updated on March 21, 2025
Was it helpful ?