Hello, i am looking into adding a variable on to end of an image url, e.g.
I wish to use this so I can ensure updated images are shown correctly in the visitors browser.
I notice this convention is used on the word press logo on the wp-admin page.
The variable I wish to add to the image is the last modified date.
I have tried a number of methods, php with filemtime () an curl() to get the images headers, i have managed to retrieve the information using curl but am now at a loss as to append the data to the image url.
I have also look into using jquery to get all images on the page then get the last modified date, this has been unsuccessful too.
Any help would be greatly appreciated.
- The topic ‘?ver on image url’ is closed to new replies.