I was fixing a bug today on coldfusiondocs.com , reported by one of the readers and I noticed that the SWF file that Flex generated was 482Kb in size. I think that is rather big for a simple application, that it is and it also explains why the server bandwidth usage had gone very high up suddenly in last 2 weeks after the launch of the site. So I asked my best friend (Google) on how to fix this and as always there was a solution to it.

Turns out that you can exclude the framework RSLĀ  files from your build and reduce the SWF size by approx 500Kb. The trick is that latest flash player has the capability to cache RSL files as soon as it visits any Flex/Flash site. These RSL files can be hosted separately on the server (either in the same directory as SWF or a central URL if you host multiple SWF’s). And your SWF can load these RSL files if not already cached. Cool Stuff! Here is the full article.

So, the next time you visit coldfusiondocs.com, your browser will only load a SWF which is 92Kb in size as compared to a 482Kb till now.

However, if anyone faces any problems, please give me a shout.