>- see footer for list info -<
>> Via the backoffice I want to upload a new band pic.
>> I conform to the rule that the pic has to be called band.jpg
...
>> So, I upload the new pic which works fine and then
>> magically the new pic appears on the front end -
>> except it doesn't because the damned CSS is being cached.

Make sure you're definitely uploading a new image: press Ctrl-F5 to
force-refresh (that tells your browser to ignore cached versions and reload
everything).

This doesn't sound like a CSS problem - if only the image is changing then
the CSS can be cached, it's just the image that needs to be reloaded.

To force the image to be refreshed you can do it through a CFM proxy -
similar method as I described before... create a band.cfm that you reference
in the CSS instead of the jpg, and try this in the file:
<cfheader name="Cache-Control" value="no-cache"/>
<cfheader name="Expires" value="#GetHttpTimeString(Now())#"/>
<cfcontent type="image/jpeg" file="#ExpandPath('../images/band.jpg')#"
reset="yes"/><cfabort/>

If it doesn't work check the various options in the W3 link in the other
message and see if any are appropriate.

On 8/27/07, Paul Swingewood <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> Ok this is driving me nuts now ... I tried Peter's earlier suggestions and
> all I could find so far on google but nothing seems to work.
>
> I now have this...
>
> Application.cfm
>
> <cfset application.css = "style/style.css?version=4">
> <!--- Version makes it fetch the latest version? --->
>
> Styel.css
>
> /* Page Image */
>
> #page_image {
>         width: 414px;
>         height: 400px;
>         background: url(../images/band.jpg) #09070a no-repeat 0px 100%;
>         color: inherit;
>         overflow: hidden;
> }
>
> Default.cfm
>
> <!-- Start of Left Column -->
>
>         <div id="left_column">
>
>                 <div id="page_image"></div>
>
>
>                 <!-- Start of Page Menu -->
>
> Ok so here's the scenario. Via the backoffice I want to upload a new band
> pic. I conform to the rule that the pic has to be called band.jpg - cos I
> can't be arsed to put this in a table and retrieve it later. (not that I
> think I can do this dynamically with css anyway). So, I upload the new pic
> which works fine and then magically the new pic appears on the front end -
> except it doesn't because the damned CSS is being cached.
>
> Does anyone know how to get around this?
>
>
> I thought i'd be good and use CSS as much as possible etc but its causing
> me
> a real nightmare!!!
>
> Paul
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
>



-- 
\ \
Peter Boughton
blog.bpsite.net
/ /
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to