Thanks for the ideas Azadi,

Sticking the CSS in the head between style tags alone didn't work but adding
?nocache=#hash(now())# to the masthead.cfm URL did resolve it.

I didn't even think to try another way of writing the image out like you
suggested. I'll give that a shot when I get home this afternoon.


-----Original Message-----
From: Azadi Saryev [mailto:[email protected]] 
Sent: Tuesday, June 01, 2010 11:41 PM
To: cf-talk
Subject: Re: imageRead plus imagepaste plus imageGetBlob issue


 browser css/images caching? i did see the problem you described on the
link you posted...

what if you put the css declaration into the page (instead of external
stylesheet) and add a random url param to the bg image url?
<style type="text/css">
#masthead {background:
url(/images/masthead.cfm?x=<cfoutput>#createuuid()#</cfoutput>) no-repeat;}
</style>

i did a very similar thing on a a couple of site, but i had random url
params added to img urls and never saw the problem you see...
i also served the images using a script like this instead of <cfcontent>
tag:

<cfscript>
oImg = toBinary(toBase64(objImage)); // can probably use oImg =
imagegetblob(objImage); in your case
context = getPageContext();
context.setFlushOutput(false);
response = context.getResponse().getResponse();
out = response.getOutputStream();
response.setContentType("image/jpeg");
response.setContentLength(arrayLen(oImg));
out.write(oImg);
out.flush();
//response.reset(); //optional for problems
out.close();
</cfscript>

hth

Azadi


On 02/06/2010 11:02, Bobby Hartsfield wrote:
> I've got this issue that is driving me batty.
>
> ... 
> ...
> ...
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to