[Zope-CMF] "statify" css

Dieter Maurer dieter at handshake.de
Mon Jan 24 12:53:47 EST 2005


robert wrote at 2005-1-22 21:44 +0100:
> ...
>I assume that the by reading a css  through its url, I get a "rendered" 
>version that is safe to cache.

It depends on what dynamic parts the CSS is dependent...

  When it depends on the current user, then it is not safe!
  When it depends on the current browser, then it is not safe!

  There are other cases, when it is not safe.

> ...
>If my assumption is correct, I wonder, why something like this is not 
>part of CMF/Plone since the css files sum up to 97k. Which is probably 
>more than the rest the page.

Caching is dangerous and, if done in the wrong way, can
give very nasty (difficult to analyse and understand) errors.
Without caching, you are on the safe side...

-- 
Dieter


More information about the Zope-CMF mailing list