Clearing image cache

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
RICHARD RUTA
Profound User
Posts: 40
Joined: Mon Apr 26, 2010 11:53 am
First Name: RICHARD
Last Name: RUTA
Company Name: WILLAM B. MEYER
Phone: 203.984.7175
Address 1: 255 LONG BEACH BLVD
City: STRATFORD
State / Province: Connecticut
Zip / Postal Code: 06615
Country: United States
Contact:

Clearing image cache

Post by RICHARD RUTA »

I am having the same problem as described in another post in Feb 2012. I am using the File Upload widget to upload images. All works well except the cached image continues to display. Renaming the images is not an option. Have there been any solutions for this problem in recent updates? Do you have another suggestion?

Thanks for all your help,
Richard
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Clearing image cache

Post by David »

Your web browser will cache image files during a session. If you close/re-open the browser, it should load the updated image.

This is just how a browser is designed, and in most cases the behavior is desirable in that performance is improved by it not having to fetch the same files over and over again.

If you want to force the browser to redownload the image each time, you'd have to make the request different.

This can be done without having to rename the files by appending a unique value as a URL parameter.

For example, like this:

/mydir/myfile.gif?r=XXXXXXXX

If you supply a different value for the URL parameter each time (using server timestamp is an easy way to do that). The browser should then see this as a separate request and fetch the file again.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests