#7578 closed bug (fixed)
$.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
Change History (5)
comment:1 Changed 7 years ago by
| Status: | new → open |
|---|
comment:2 Changed 7 years ago by
| Component: | unfiled → ajax |
|---|---|
| Priority: | undecided → high |
comment:3 Changed 7 years ago by
| Owner: | set to jitter |
|---|---|
| Status: | open → assigned |
Note: See
TracTickets for help on using
tickets.

pull request