Problem in including javascript files

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs