When pdf price lists change old version being displayed.
I have a website with 8 price lists and they are linked from 3 different places.
Currently when I upload the price lists I keep the name the same. This time I noticed in IE that in one case the old price list was still displayed and even when the price list was removed it still displayed the old one! Clearing the browser history fixed it but when users visit the site they may still see the old version.
I see my options as:
Rename the files every time which means changing 24 links - a pain.
Put the file names in a database - only need to change 8 items not 24 - less of a pain.
Read the directory containing the price lists and some how change the links to the new version - prefered method but I am not sure how to impliment. Possibly use explode or a regex?