From: Gavin Kistner Date: 2005-10-05T21:11:34+09:00 Subject: Re: CSS switcher in Ruby? On Oct 4, 2005, at 11:46 PM, James Britt wrote: > Create dynamic_css.rb (or whatever you call it) FWIW - creating dynamic content breaks browser caching. (This should be obvious, but I thought I'd say it anyhow.) If your HTML is static and huge and your CSS small and dynamic, then creating CSS on the fly makes sense. However, if you have a couple static 'theme' CSS files and your HTML is already dynamic, users will save bandwidth and time if your HTML generator rewrites the tag on the fly to pre-existing, static CSS files. This way, the browser can cache the CSS file (provided you also set up your web server to send caching HTTP headers).