---
title: Avoid Using The File Download Servlet To Reference Static Resources
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/salesforce-rules/avoid-using-the-file-download-servlet-to-reference-static-resources/"
updated: "2025-03-21"
category: Rules
---

# Avoid Using The File Download Servlet To Reference Static Resources

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
