1

Is it a good practice to include version information along with the name when you are uploading a static resource. For example, I am uploading a file "Bootstrap-3.3.5.zip" in static resource, Shall I name my static as "Bootstrap" or "Bootstrap3"? What would you suggest in long run? Please share your thoughts.

0

I would suggest calling it something general like "Bootstrap". Although appending versions might sound like a reasonable idea, it breaks down when a new version is released and you have to go through every VF page to update the markup to match the current version of Bootstrap.

Keeping all names, folders and files consistent will keep your resources up to date without generating additional, unnecessary work.

Just my thoughts!

  • Thanks for sharing your thoughts. If we give general name like "Bootstrap" and if you are looking at VF page which has used above static resource then by looking at VF page it is hard to say what version has been used here. – doga Jul 22 '15 at 9:17
  • In that instance what I would suggest is, in a Sandbox environment, editing and changing the static resource with an updated version and amending the description field to dictate what version of Bootstrap you're using. That way you know all of your VF pages are on the latest version and the resource informs what version that is. Everything is centralised and in one place. You can then check the effect of the new version safely and deploy. – Dan Jones Jul 22 '15 at 9:25

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.