I would expect that if you really wanted the CSS to be dynamic, that
for browsers like FireFox (which doesn't _seem_ to allow me to control
caching of css templates) you would need to include a random url
variable in your link tag to make the browser think it's a different
sheet on each request, i.e. <link
href="css.cfm?random=#randrange(1,1000)#" ...>

though... shouldn't this have been to cf-talk?

> So if one, just because one can, had a file such as this.

> CSS.cfm
> -------------------------
> <cfset bgcolor = "green">

> <cfoutput>
> <cfcontent type="text/css">
> body
> {
>     background color: #bgcolor#;
> }
> </cfcontent>
> </cfoutput>

> And another file such as this.

> HTML.htm
> -------------------------
> <html>
>     <head>
>        <title>Testing</title>
>        <link href="css.cfm" rel="stylesheet"
>        type="text/css">
>     </head>
>     <body>
>        <h1>Hello I'm testing cfml generated css</h1>
>     </body>
> </html>

> What effect would this have on browsers caching the CSS
> file?

> Ian

s. isaac dealey     954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:148086
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to