Problem in including javascript files


#1

Hi,

I am using this <%= javascript_include_tag ‘/editor/xyz.js’ %> to
include javascript source to my code. But I am getting this as output

I just want to know why I am getting a question mark in
“/editor/xyz.js?”.

Thanks for any assistance in advance.

Regards
Chetan Thapliyal


#2

Chetan Thapliyal wrote:

Hi,

I am using this <%= javascript_include_tag ‘/editor/xyz.js’ %> to
include javascript source to my code. But I am getting this as output

I just want to know why I am getting a question mark in “/editor/xyz.js?”.

I’m guessing that’s to do with asset caching. It shouldn’t cause a
problem. Asset caching works by attaching a timestamp from the last
modified time on the asset file to the generated links, so the browser
knows not to download it if it can avoid it.