Skip to main content

Bug Tracker

Side navigation

#4898 closed feature (invalid)

Opened July 14, 2009 03:57AM UTC

Closed July 14, 2009 01:44PM UTC

Option to disable adding the underscore timestamp parameter to script src

Reported by: dandv Owned by:
Priority: minor Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: Cc: dandv, pbcomm
Blocked by: Blocking:

I'm trying to append a DOM element of a script with a given 'src' attribute, but jQuery always intercepts that and adds a timestamp parameter. This makes the script's source URL look like

when running

$("<script src=''<" + "/script>").appendTo("body");

This breaks the API, and it would be awesome if the automatic timestamping could be disabled.

Attachments (0)
Change History (3)

Changed July 14, 2009 05:07AM UTC by dandv comment:1

Changed July 14, 2009 05:25AM UTC by pbcomm comment:2

The timestamp is added to prevent caching. You can easily turn that off by setting ajaxSetup cache option to true:


Changed July 14, 2009 01:44PM UTC by flesler comment:3

cc: → dandv, pbcomm
component: unfilledajax
priority: criticalminor
resolution: → invalid
status: newclosed

Yes, pbcomm is right.