Hi everyone,
thank you for taking the time to respond to my thread, i am sure that any insight you have to my particular issue will be beneficial.
The situation:
I have a contact page with a world map. When the user hovers over the dot on the map that signifies an office, a hover effect will appear that is a div containing a background image.
This background image is generated using php gd and is an image with the offices local time stamped onto it. This is working fine.
The issue:
As you can guess if the local time is to be stamped onto the image then this requires to be accurate. Unfortunately the images are being cached and therefore are displaying the incorrect time.
What have I tried so far:
I have researched cache disabling and have tried a few things before I annoy you guys and girls.
1: Setting headers, Pragma(for the ssl) and Expire headers only prevent cacheing of the actual html page, the images are still cached.
2: I experimented with incremental filenames for the images. The image creation process goes:
Get original image from media/images/.png
Add time stamp.
Save new image to /media/images/contact-hovers/.png
I have modified the script to save the image to /media/images/contact-hovers/*-timestamp.png and as its not second sensitive this would actually work, however as each PNG is 36Kb, eventually this will gather in size to a max of 800Gb. So errr yeah really not a valid solution.
Any ideas of where I should be focusing next?