Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cache Question 2

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have an intranet site with an option to upload pdf files via asp. I loaded the pdf file using my script on a client machine and checked the file had been uploaded on to the web server by physically going to the web server and checking the file. It had indeed been uploaded.

I then went back to my client machine and typed in the address of the pdf file I had loaded. It brought up the previous version of the pfd file that my upload had overwritten.

Well OK, I thought. I just need to clear my cache on my client browser and go to the address again. This I did but I still got the old wiped out version of the file in my browser. Only when I hit 'refresh' on the client did I get the new uploaded verison displayed. My Explorer settings are set to 'check for newer versions of stored pages' on
'every visit to the page' so why did clearing my client cache not clear the way for the new version of my pdf file?




Dazed and confused
 
I've had this same problem with my applications that create a PDF file and return them to the browser.

When you clear your cache in the client browser (assuming your using IE) -- from the tools menu select "Internet Options" and click on "Delete Files" -- this opens a dialog box that gives you the option of deleting all offline content as well. Make sure that this box is checked when you hit OK.

Other than that, all I can say is add the time of day to the URL by encodeing the UTC time and placing after the filename preceded by a question mark.
 
gizzy,
Adding the TOD to the URL is a GREAT idea! I'm not doing anything like this right now but if I need to in the future I will definitly use that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top