function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TinmanDCS2TinmanDCS2 

Static resource

I am working on a site using the customer portal and the new sites technology. As part of my development I have uploaded some images to be used throughout the site as static resources and have made them public.

 

The issue I am having is that the images do not render (I get a 404 error) unless I actually log into my salesforce.com instance first. If I open up a new browser window and log into the site/customer portal the images links are broken. However the stylesheet I am using does load. Once I log into my actual SFDC org and then return to the portal the images work fine.

 

Any ideas/direction on this one?

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

Here is the great article on this topic:

http://wiki.developerforce.com/index.php/Delivering_Static_Resources_with_Visualforce 

All Answers

BulentBulent

Here is the great article on this topic:

http://wiki.developerforce.com/index.php/Delivering_Static_Resources_with_Visualforce 

This was selected as the best answer
rpolisettirpolisetti

Make sure that you set the cache to Public. Otherwise they do not appear in sites.