November 9th, 2007
Developer Notes – SWF Caching
I’ve been playing with RSLs last couple of weeks, and during this time I’ve done some testing regarding browser caching of SWFs. Here are some quick notes on what I discovered:
1. When running your Flex app locally – for instance, when debugging with Flex Builder – neither Firefox nor Internet Explorer cache SWFs. It makes sense, but it may trip you up when your trying to debug issues that may be related to caching.
2. On Windows Vista a default install of Internet Explorer 7 runs in Protected Mode. Also, Protected Mode only exists on Vista due to it’s dependency on UAC (User Account Control). Anyway, the reason I mention Protected Mode is because cached SWFs are stored within Content.IE5 subfolders of a special LOW folder in the Temporary Internet Files directory when you’re running in this mode.
3. Turn off Protected Mode and leave the other configurations in Internet Explorer 7 default. Make sure to restart IE. In this configuration, SWFs will be cached, and set to never expire.
4. In a default configuration of Firefox – my version is 2.0.0.9 – SWF are cached and set to expire every 5-7 minutes or so. From what I can tell, there’s no way to change this setting.
If you want to play around and don’t know how to look at the files in your cache, here’s how you can do it:
- Firefox 2.0.0.9:
- Open Firefox
- in the address bar type “about:cache” for your URL
- From there you can click into either the memory cache or the disk cache
- once you’ve clicked into either cache, you can click on the links provided with each individual cache item to view information on the item
- Windows Vista
- Internet Explorer 7 (Protected Mode ON)
- Tools menu
- Internet Options
- General Tab
- Browsing History section
- Settings Button
- View Files button.
- Note that in Protected Mode, the folder that’s displayed is incorrect. To change this, change the folder buttons in your address bar to a string path, and navigate into the LOW subdirectory. For instance: C:\Users\{username}\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low
- Internet Explorer 7 (Protected Mode OFF):
- Tools menu
- Internet Options
- General Tab
- Browsing History section
- Settings Button
- View Files button. For instance: C:\Users\{username}\AppData\Local\Microsoft\Windows\Temporary Internet Files\
- Windows XP
- Internet Explorer 7 (Protected Mode OFF)…I’m not running XP, but I would assume it’s the same steps in IE7 pointing to a different Temporary Internet Files directory location. Anyway:
- Tools menu
- Internet Options
- General Tab
- Browsing History section
- Settings Button
- View Files button. For the directory location I’m thinking: C:\Documents and Settings\{username}\Local Settings\Application Data\Microsoft\Windows\Temporary Internet Files\
- Internet Explorer 7 (Protected Mode OFF)…I’m not running XP, but I would assume it’s the same steps in IE7 pointing to a different Temporary Internet Files directory location. Anyway:
- Internet Explorer 7 (Protected Mode ON)
Anyway…don’t know if this will help anyone with their development, but I figured I’d save the info for future reference…also, if you have any corrections on the above or other input regarding caching SWFs in the various browsers, feel free to comment.

