16
2008
Flash image gallery always display old image
 
16 July 2008 | 05:56pm by EdwardRF

James faced a problem when he was using a flash gallery component in one of our Joomla Project. The problem is, after we change the image to be displayed in the gallery, via changing a .xml file. However the change is never reflected on the browser.

After some close examination on the browser cache, it is actually due to the cache of the control .xml file. To solve the problem I decide to use the .htaccess file to control the header of the returned files from apache server. After some googling, I found the following .htaccess file should be working:


Header set Cache-Control “max-age=0, no-cache, no-store, mush-revalidate”
Header set Pragma “no-cache”
Header set Expires “0″

However, it didn’t work no matter how I change the parameters. Upon some examination, the file is still being cached! what happened is the apache configuration didn’t enable the use of .htaccess file. To enable that, need to change the AllowOverride derivative to “All“.

But still didn’t work!!!!!! i am so pissed, but just realized I didn’t restart apache after changing the configuration file. After the restart of apache, every thing worked like a charm.

 
Enter your e-mail address to receive notifications when there are new posts



 
Design & Copyrights 2008 All Rights Reserved By 199Web Design Studio