Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Prevent jQuery.getScript adding ?_=timestamp

How to prevent jQuery.getScript from adding ?_=timestamp on URLs?

error log

Source code:

$.getScript('/js/ace/ace.js',function(res) {
 // do something
}); 

Answer*

Draft saved
Draft discarded
Cancel
4
  • 1
    @Kokizzu, check another couple of solutions Commented Mar 9, 2015 at 7:00
  • 1
    ah wait, it works, previously I misread the $.ajaxSetup as $.ajax Commented Mar 9, 2015 at 7:05
  • Plagiarism: copied without attribution from jquerybyexample.net/2012/04/… Commented Sep 1, 2016 at 5:26
  • @Pekka웃, answered this long back, when was not aware of proper practice. Edited post.. mark words, it was not intentional! thanks for notifying. Commented Sep 1, 2016 at 6:48

lang-js

AltStyle によって変換されたページ (->オリジナル) /