Unwanted Caching

Unwanted Caching

Forum member · Jun 11, 2008
My pdf documents are coming up fine but when the pdf viewer window is closed Acrobat stays in Task Manager. If I make changes to my web forms and then generate the pdf again a cached version is opened and this does not show my changes. If I KILL the Acrobat exe running in Task Manager then open the pdf the changes show. How do we get around this caching? KillTask doesn't work because it tries to KILL the process on the IIS box but that is not where the problem is, the problem is on the end user machine.

Re: Unwanted Caching

Support · Jun 11, 2008
Hello, This is causing most probably because the Acrobat reader Caches the values temporarily. You can stop Acrobat Reader from caching the values by going to the Edit Menu --> Preferences --> Select Forms on the left Panel --> Uncheck the check box that says “Keep forms data temporarily available on disk and this will solve your problem. And the only other option is by adding a random number or timestamp to the query string every time it gets generated and this will prevent the values from being cached. Thanks, ceTe Software Support Team.

Re: Unwanted Caching

Forum member · Jun 11, 2008
I'll answer my own question. The only way I have found to avoid caching is to first write the file to disc then force download of that file and open it: document.Draw(MapPath("/PDFbuilds/" + PolNo + "_" + thisDay + ".pdf")); document.DrawToWeb(false, MapPath("/PDFbuilds/" + PolNo + "_" + thisDay + ".pdf"), true); I have appended the date and time to the file to make them unique to keep users from stepping on each other. The downside to this is these files stay out there on disc and as time goes by a lot of disc space is used so you may need to delete these files some how periodically. Perhaps a better way is to append the ntuser name to the file and overwrite.