When I try to deploy .js files as part of a feature, not in the _layouts directory I get the following error:
Cannot make a cache safe URL for ‘myfile.js’
Any suggestions appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We place our .js files under Style Library for a given site collection. We got our solution template from a consultant so I’m not comfortable sharing the files/details on the Internet, but provisionfiles.xml (element manifest) has the .js files listed under the CSSFiles module.
EDIT: Googling for this information is difficult. I found that (module RootWebOnly) and (module cssfiles RootWebOnly) return decent results.