Skip to main content

Bug Tracker

Side navigation

#7578 closed bug (fixed)

Opened November 19, 2010 09:21PM UTC

Closed December 06, 2010 10:12PM UTC

Last modified March 13, 2012 09:13PM UTC

$.getScript (ajax 'script' dataType) regression on cache control

Reported by: ambrauer Owned by: jitter
Priority: high Milestone: 1.5
Component: ajax Version: 1.4
Keywords: Cc:
Blocked by: Blocking:
Description

Versions 1.4+ no longer automatically set cache to false if undefined.

The culprit seems to be this line:

if ( s.dataType == "script" && s.cache == null )
    s.cache = false;

which was updated to:

if ( s.dataType === "script" && s.cache === null ) {
    s.cache = false;
}

which no longer evaluates to true (s.cache is undefined, so == will evaluate to true, whereas === to false).

No big deal, but maybe this should be noted in the documentation, and/or code removed since it's no longer doing anything.

Only semi-related ticket I could find was this:

http://bugs.jquery.com/ticket/3004

Attachments (0)
Change History (5)

Changed November 19, 2010 10:10PM UTC by jitter comment:1

status: newopen

Changed November 19, 2010 10:21PM UTC by jitter comment:2

component: unfiledajax
priority: undecidedhigh

Changed November 21, 2010 10:05PM UTC by snover comment:3

owner: → jitter
status: openassigned

Changed December 06, 2010 10:12PM UTC by john comment:4

resolution: → fixed
status: assignedclosed

Landed.

Changed January 21, 2011 10:12PM UTC by jitter comment:5

#8032 is a duplicate of this ticket.