Is there a way to access static resources or documents without being logged into the system. So if the file in not marked as "Internal Use Only", can I provide a direct link to it for others to access without login in?

My concern is mostly with a css file that I would like to use but the way things are set up, user will usually not be logged into Salesforce and the entire css will be gone from the site.

Here is the example of it only working if I am logged in:


So is there a way to embed an org id into the link so that it references the correct content from correct org?


Why don't you try Salesforce Content? With Salesforce Content, you will able to access documents outside the salesforce. Static Resources can be accessed from Sites developed with Visualforce.

For more info on Salesforce Content. https://help.salesforce.com/HTViewHelpDoc?id=content_about.htm&language=en_US

| improve this answer | |
  • Thanks for that suggestion, unfortunately the does not work because the link that Libraries provides is a URL to the page where the CSS file can be downloaded. That does not work because there is no direct download link that can be embedded into the head of an html document. – Yevgen Sep 30 '14 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.