[thelist] Server side CSS

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Mon Feb 23 15:53:09 CST 2004

Not sure what exactly you're asking, but you would probably do fine to force
a stylesheet refresh by using a query string, as suggested by Anthony,
within the linked HTML page.  Your script would populate the query string
with a new value each time you update the CSS.  A unix timestamp or version
number would make a good query string value.  In your shoes I would have my
app update a record for the current stylesheet to timestamp it, and then use
that value in the output when building the HTML.

Wow, that was wordy, I hope it was sorta clear...

Maximillian Von Schwanekamp
Websites for Profitable Microbusiness
voice: 541-302-1438
fax: 208-730-6504

-----Original Message-----
From: Sam Carter [mailto:scforum at iness.com]
Sent: Monday, February 23, 2004 1:28 PM
To: thelist at lists.evolt.org
Subject: [thelist] Server side CSS

I've had server - side generated CSS to change background colors running
fine for over a year.

Knowing Browsers load CSS sheets once for efficiency, I can't remember at
all how I managed to get the browser to reload the modified stylesheet when
a parameter was changed.  How would the browser know a server session
variable changed?  No way.  So how come it was loading a fresh CSS page very
time the user clicked the right icon?  I dunno.

Of course, it quit working the minute I realized that this might be a
problem.  Sure enough, hitting the browser refresh loads the revised page
and everything is hunkey dorey.

Reminds me of Wiley Coyote running off a cliff.  He hovers in mid air but
doesn't fall and is afraid to look down.  He feels around, nope, no ground,
so he peeks and THEN falls like a rock.

Any help other than a large heavy object appreciated.

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !

More information about the thelist mailing list