[ 2 posts ]

Josh Lizarraga

YUI Contributor

  • Offline
  • Profile
Tags:

YUI3 Custom Module Cache Issues

Post Posted: Fri Aug 07, 2009 1:01 pm
+0-
Hi all,

I am using a coupe of custom YUI3 modules, which the YUI3 Loader appends as SCRIPT elements to the HEAD element.

Everything is working fine, and it is *great* having just one SCRIPT element on the page (the base YUI3 script), but something about this loading method sometimes causes both Firefox (3.0.13) and Chrome (2.0.172.39) to fail to un-cache these files when the cache is cleared or a force-refresh (Ctrl+F5, Ctrl+R) is used.

I can't seem to find any pattern to this issue whatsoever, only that I have seen the issue in these browsers on two separate XP SP3 machines running these browsers. Usually it can be fixed by clearing the cache manually then restarting the browser, but sometimes a full system restart is required, especially for Chrome. I tried to put together a test case, but I couldn't find any pattern whatsoever (and the test modules I used were only like 3 lines long) - it seems totally random.

Has anyone else encountered this issue or have suggestions on forcing FF3.0/Chrome 2 to un-cache the custom module files? Both Safari 3 and Safari 4 appear to be unaffected, which I thought was interesting since any time I have a problem with Webkit it is in both browsers.

Josh Lizarraga

YUI Contributor

  • Offline
  • Profile

Re: YUI3 Custom Module Cache Issues

Post Posted: Fri Aug 07, 2009 1:28 pm
+0-
Okay after making this post I took another crack at a test case. The details of the effect still seem somewhat random but the cache issue shows up 100% of the time in FF3.0 and IE6 on Windows XP SP3 with the following test case:

http://yuilibrary.com/projects/yui3/ticket/2528158

Edit: Adam Moore has responded with a workaround that fixes this problem. See the ticket for more information. Thanks Adam!
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum