<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>19530</bug_id>
          
          <creation_ts>2008-06-12 20:28:23 -0700</creation_ts>
          <short_desc>Safari/WebKit requests the same URL multiple times when Firefox/IE only requests it once</short_desc>
          <delta_ts>2025-10-17 09:57:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://faceoutblaze.dreamhosters.com/flashtest/test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Yusuf Goolamabbas">yusufg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>kubulee.kl</cc>
    
    <cc>waikit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83144</commentid>
    <comment_count>0</comment_count>
    <who name="Yusuf Goolamabbas">yusufg</who>
    <bug_when>2008-06-12 20:28:23 -0700</bug_when>
    <thetext>Hi, My colleague and I have constructed a test page which uses swfobject to incorporate a SWF file into an HTML page. The purpose of this test page is to load the same swf files multiple times into different divs and see if browsers make a single request or make multiple requests

The test page has multiple links via either use raw &lt;embed&gt; tags or swfobject api calls via loop unrolling, in a loop. We also use a mechanism which we term as preload wherein we have a simple Actionscript on the first frame of the swf file which calls out to a javascript callback after it finishes loading in the main page. We found this to be an appropiate workaround for IE6/IE7 for it not to make multiple requests

This is the actionscript used in the swf file

_root.stop();
this.onEnterFrame = function(){
        this.bytes_txt.text = _root.getBytesLoaded() + &quot;/&quot; +
_root.getBytesTotal();
        if(_root.getBytesLoaded() == _root.getBytesTotal()){
                this.bytes_txt.text = &quot;done&quot;;
                _root.gotoAndStop(2);
                getURL(&quot;javascript: preloadfinish();&quot;);
                delete this.onEnterFrame;
                }
        }


We find that when we use Safari 3.1 on Mac OSX 10.5.3, it makes multiple requests to bring in the same swf file. This was observed via the Web Inspector as well as via HTTPScoop &lt;http://www.tuffcode.com/&gt;

Firefox 2 as well as Firefox 3 only make one request. It seems to remember that it made a request to the URL and thus doesn&apos;t fire it out again

We&apos;ve tried with both swfobject 1.5 as well as swfobject 2.0

SWFObject 1.5: http://blog.deconcept.com/swfobject/
SWFObject 2.0: http://code.google.com/p/swfobject/

Test URL using SWFObject 1.5

http://faceoutblaze.dreamhosters.com/flashtest/test.html

Test URL using SWFObject 2.0

http://faceoutblaze.dreamhosters.com/flashtest2/test.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83157</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-06-12 22:01:53 -0700</bug_when>
    <thetext>I&apos;m pretty sure that this is a duplicate, but I cannot find the original now...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83269</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-13 14:58:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/6007144&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85408</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuf Goolamabbas">yusufg</who>
    <bug_when>2008-07-07 17:04:04 -0700</bug_when>
    <thetext>This behaviour is still observed in 10.5.4 and Safari 3.1.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102632</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuf Goolamabbas">yusufg</who>
    <bug_when>2008-12-15 20:43:07 -0800</bug_when>
    <thetext>Still not fixed as of 10.5.6 and Safari 3.2.1

Version 3.2.1 (5525.27.1)

Also tested with WebKit nightly (r39293) and shows the same effect of multiple requests for the same content. 

Can&apos;t determine if this is a bug in CFNetwork or in WebKit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>