Jump to content
Jero, youâ€™re right that if youâ€™re generating the CSS at runtime you need to make sure youâ€™re serving it with the correct headers. Depending on circumstance, I think the more common scenario is to generate your CSS when it changes and save that as a static file on the file system.
Just as with any server-side scripting, itâ€™s wasteful to generate the same file again and again when you know it hasnâ€™t changed. The exact same statement applies to generating an HTML document.