Bug Tracker

Modify

Ticket #5204 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.