Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Eric.NET #1
Newbie Question -- Bypass client image caching?
I'm using cfx_getImage to extract images from SQL Server...works great. The
image is used on a person's contact info screen within a standard directory
lookup application.
However, since the filename of the JPG is always the same (and therefore, the
SRC attribute of the IMG tag is the same), you get the same person's picture
for any contact info. The picture is only updated when you refresh (F5) the
page.
Does anyone know how to force the browser to always download the image instead
of using its cached copy? Here is what I have already tried:
1. Tried to manually flush the cache...(does this happen only at the server
then?)...
<cfcache action="flush" expireurl="#PhotoDirectoryURL##PhotoFileName#">
2. Tried the CFHEADER tag to expire the page:
<cfheader name="Expires" value="#Now()#">
<cfheader name="Pragma" value="no-cache">
Any help is greatly appreciated!
Thanks,
Eric
Eric.NET Guest
-
Newbie question: using .net web service with vb6 client
Hi, I'm relatively new to web services. What I have is a .Net Web Service which returns a dataset. I'm calling the web methods via a VB 6 client.... -
Image Background... your basic newbie question!
I created an image with no canvas color. When I place it onto a page in Dreamweaver, the image has a gray background. Any ideas as to why? ... -
Client caching
Is it possible to cache portions of a page client side. I have som include pages that I would like to store at the clients cache. -
Working with client workstations - newbie question
HI, I have an existing VB6 / SQL Server cataloging application which I wish to convert to a web based application. I figure this would be a good... -
stopping client side caching
What can be done to keep pages from caching and to hit the server each and every time they are accessed? When our users hit their back button on... -
byron1021 #2
Re: Newbie Question -- Bypass client image caching?
cfcache is a CF server-side function, you can put the HTML for a cf template
into a temp cache dir on the CF server and that html is used instead of
processing the CF template each time. So you probably want to stay away from
that. Try using meta tags instead <meta http-equiv='pragma' content='no-cache'
/> <meta http-equiv='Cache-Control' content='no-cache' /> This are pretty much
the same as the response headers, but may make a difference. Is there any way
in your code to write the image from the server to a unique file name for each
image? Such as appending it with a userid or record id?
byron1021 Guest
-
Eric.NET #3
Re: Newbie Question -- Bypass client image caching?
Thank you for your reply.
I tried using the meta tags, but they didn't work. Are those just to keep the
actual HTML from caching, not necessarily the images?
I was hoping to avoid using a unique file name for each image to reduce
clutter, as there is the potential for several hundred images. However, my
customer just e-mailed me that this issue was becoming a problem, so...I went
ahead and created the unique file names, and everything works fine.
Thanks again, Byron,
Eric
Eric.NET Guest



Reply With Quote

