Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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" ) {
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.