Chris Blown said:
> 1. As Beau mentions dynamically generate the style sheet.
> <link rel="stylesheet" type="text/css" href="cssmaker.php" />
>
> Not sure here, but method 1 might have caching issues, I've never tried
> this, so perhaps Beau can comment here.

you might run into some caching issues here, depending on the volume that
you're dealing with. again, using headers, you could work around this. you can
set a header with something like

header('Content-expiry: date here');

or something like that (can't remember the exact header declaration off the
top of my head) and just tell the UA to cache the output for a certain period
of time, so that even tho you're repeatedly calling cssmaker.php, the browser
should cache the output.

another option would be temporary filesystem caching on the server, which can
work quite well, where you write the css file once, then if it exists and is
under a certain age, just give that to the user rather that hitting the
database again. that can help on the server side a little :)

Beau
*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to