Search This Blog

Tuesday, March 8, 2011

Force Firefox not to use any cache while developing in Flex/Flash Builder

If you use Firefox for Flex development, you may have had problems with a SWF caching problem.  Even though a Flex compile updates the SWF file on the file system, Firefox doesn’t pull the new SWF from the server, but rather uses its internal already cached SWF file.  This can cause headaches when trying to guess why the code change doesn’t appear in the browser.  To solution has been to clear the cache in Firefox and reload the page.  I turned my browser cache size limit down to 0MB.  This doesn’t seem to fix the problem either.  There is another setting that can’t be found in the Firefox interface.

  1. Open a new tab in Firefox.
  2. Type about:config in the url.
  3. Agree to the warning.
  4. Change the property browser.cache.disk.enable and set it to false.

Thus far this solution seems to keep my SWF file from being cached by Firefox.


No comments:

Post a Comment

If you like this post, please leave a comment :)