Ticket #2530180 (closed defect)

Reporter


bzbugs
Opened: 04/26/11
Last modified: 05/10/12
Status: closed
Type: defect
Resolution: fixed

Owner


Allen Rabinovich
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Automatically correct for IE caching by appending a cache-busting string to the SWF URL.
Description:

Steps To Reproduce:

1. Open http://developer.yahoo.com/yui/3/examples/uploader/uploader-withvars_clean.html in IE6
2. Click on "select file" button & Upload a file with extensions:"*.jpg;*.png;*.gif" as present
in the Javascript.
3. Refresh the page.
4. Click on "select file" button & see that the extension setting is gone. Uploader allows to upload any
file extension.
5. Try to Upload a file with extensions:"*.jpg;*.png;*.gif", the uploader will not be able to upload the
file.

Type: defect Observed in Version: 3.3.0
Component: Uploader Severity: S3 (normal)
Assigned To: Allen Rabinovich Target Release: 3.5.0
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: IE 6.x,IE 8.x
URL: http://developer.yahoo.com/yui/3/examples/uploader/uploader-withvars_clean.html
Test Information:

Change History

Allen Rabinovich

YUI Developer

Posted: 04/28/11
  • status changed from new to accepted

Shashank Saraogi

Posted: 05/30/11
  • browser changed from N/A to IE 6.x
  • testurl changed to http://developer.yahoo.com/yui/3/examples/uploader/uploader-withvars_clean.html

Chris Hut

Posted: 06/22/11
  • browser changed from IE 6.x to IE 6.x,IE 8.x

This actually happens with IE 8 too (and can be observed with IE 9 in compatibility mode)

Details and workaround from chat transcript in #yui:

allenrabinovich: It has to do with the fact that IE caches the SWF file
allenrabinovich: And then loads it as if it were loading it from the filesystem
allenrabinovich: As opposed to from the network
allenrabinovich: And the SWF, thinking it was loaded from the filesystem, goes into the filesystem sandbox.
allenrabinovich: Right
allenrabinovich: So if you attach a random string to the SWF URL
allenrabinovich: As a GET var
allenrabinovich: Which would just get ignored
allenrabinovich: That would bust the cache.
allenrabinovich: So like "uploader.swf?" + "q=" + Math.random() type of thing

Allen Rabinovich

YUI Developer

Posted: 02/1/12
  • milestone changed to 3.5.0
  • summary changed from [bz 4417714] Uploader SWF is not behaving correctly when page is refreshed in IE6 to Automatically correct for IE caching by appending a cache-busting string to the SWF URL.

Allen Rabinovich

YUI Developer

Posted: 02/1/12
  • estimated changed from 0 to 0.5
  • sprint changed to sprint 3

Allen Rabinovich

YUI Developer

Posted: 02/1/12

Ticket #2529747 was marked as a duplicate of this ticket.

Allen Rabinovich

YUI Developer

Posted: 03/9/12
  • sprint changed from sprint 3 to sprint 4

Allen Rabinovich

YUI Developer

Posted: 03/17/12
  • status changed from accepted to checkedin

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • resolution changed to fixed
  • status changed from checkedin to closed

checkedin -> closed