Opened 13 years ago
Closed 13 years ago
#5204 closed enhancement (invalid)
It seems that the ajax 'cache' parameter is useless
Reported by: | robustsolution | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | ajax | Version: | 1.3.2 |
Keywords: | underscore, get, cache | Cc: | |
Blocked by: | Blocking: |
Description
except for internet explorer where is has an important effect but is still browser dependent not client side application dependent.
so why don't we omit all the 's.cache' tests from the jQuery library?
so the consecutive lines
if ( s.dataType == "script" && s.cache == null )
s.cache = false;
if ( s.cache === false && type == "GET" ) {
should be replaced by only
if (type == "GET" ) {
Note: See
TracTickets for help on using
tickets.
It actually does make a difference whether you set it to true or false. Setting false avoids any cache, while having it as true will give you cache on most cases.