I've read through the forums and tried several searches but cannot seem to locate an issue similar to the one I am having.
I am using ckFinder for ColdFusion 1.2.3 on a Windows 2003 enterprise, ColdFusion 8 enterprise server.
I have a web page that allows a user to select from a list of multiple themes, each time they select a theme the page refreshes and displays a new set of images as the location of the images folder is dynamically set. I decided to try and integrate the standalone version of ckFinder to manage the images in the folders, just dynamically changing the baseURL for ckFinder ever time the page reloads.
Almost everything works fine; the images can be renamed, uploaded, downloaded, deleted, etc. and the appropriate images are being managed for the appropriate folder as indicated by the theme choice made by the user.
The issue is If you switch between themes the thumbnail images displayed in the ckFinder do not change (each theme has all the same images (image1.gif, image2,gif, etc.) named exactly the same, just different looks), although if you click on the "view" of the thumbnail when it is put into the popup window it will show correctly. If the user clears the cache on their local browser and refreshes the page the thumbnails will again show correctly.
Example:
Theme A Image One --> Blue Circle
Theme B Image One --> Red Circle
User clicks on Theme A and sees the thumbnail of image one (a blue circle), they click on the view to pop it up in the window and it shows a blue circle.
User then clicks on Theme B and see the thumbnail of image one (again a blue circle, when a red circle would be expected), they click on the view to pop it up in the windows and it shows a RED circle, as would be expected.
If the user clears their local cache (browser) and refreshes the page the thumbnail of image one will show as a red circle as expected.
My initial thought is to create multiple instances of ckFinder and load between them (slightly painful) or modify ckFinder to create an instance of itself with a unique name and call between instances to force reloads (again not my first choice).
I'm hoping that there is something I'm missing that could prove an easier solution.
I am using ckFinder for ColdFusion 1.2.3 on a Windows 2003 enterprise, ColdFusion 8 enterprise server.
I have a web page that allows a user to select from a list of multiple themes, each time they select a theme the page refreshes and displays a new set of images as the location of the images folder is dynamically set. I decided to try and integrate the standalone version of ckFinder to manage the images in the folders, just dynamically changing the baseURL for ckFinder ever time the page reloads.
Almost everything works fine; the images can be renamed, uploaded, downloaded, deleted, etc. and the appropriate images are being managed for the appropriate folder as indicated by the theme choice made by the user.
The issue is If you switch between themes the thumbnail images displayed in the ckFinder do not change (each theme has all the same images (image1.gif, image2,gif, etc.) named exactly the same, just different looks), although if you click on the "view" of the thumbnail when it is put into the popup window it will show correctly. If the user clears the cache on their local browser and refreshes the page the thumbnails will again show correctly.
Example:
Theme A Image One --> Blue Circle
Theme B Image One --> Red Circle
User clicks on Theme A and sees the thumbnail of image one (a blue circle), they click on the view to pop it up in the window and it shows a blue circle.
User then clicks on Theme B and see the thumbnail of image one (again a blue circle, when a red circle would be expected), they click on the view to pop it up in the windows and it shows a RED circle, as would be expected.
If the user clears their local cache (browser) and refreshes the page the thumbnail of image one will show as a red circle as expected.
My initial thought is to create multiple instances of ckFinder and load between them (slightly painful) or modify ckFinder to create an instance of itself with a unique name and call between instances to force reloads (again not my first choice).
I'm hoping that there is something I'm missing that could prove an easier solution.
Re: Standalone ckFinder Image caching
It looks like Etag header is required here. I'll work on this and sent you the right files soon if you don't mind
It will be officially fixed in 1.3 (CKFinder for ASP and CKFinder for ASP.NET already have this feature).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Standalone ckFinder Image caching
This way, if basePath is changed and the url is still the same, thumbnail will be refreshed.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Standalone ckFinder Image caching
I appreciate the solution but can you point me in the direction of the file I should be looking at? I'm very new to ckFinder so I'm still learning my way around the code pages.
Thanks
Re: Standalone ckFinder Image caching
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Standalone ckFinder Image caching
Ahh, now that makes sense!!
I will look forward to the fix then.
Ryan