Caching

Forum member · Mar 29, 2006
I have a pdf that i am populating & merging etc. It seems to be caching the data, however. When I make a change to the code behind to, say, populate a new field, it won't show up on my machine. On other machines, the change is there. This also happens when I make a value change in the DataBase. I have tried the following (individually and collectively): <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> in the code behind: Response.Cache.SetCacheability(HttpCacheability.NoCache) i even set the allow server caching to false: MyDocument.DrawToWeb(Me, False, "enroll_app.pdf", False) nothing works. Any thoughts?

Re: Caching

Forum member · Mar 29, 2006
Sorry I didn't do my due diligence in checking ALL of the threads prior to posting. When I searched for "Cache", i found an answer. http://www.DynamicPDF.com/Forums/DisplayThread.csp?ForumID=1&ThreadID=58#154 I fixed the problem by adding a random number onto the querystring. I don't like this method, but it works.

Re: Caching

Forum member · Apr 26, 2006
I've been battling the same problem for a while. I'm trying to come up with a foolproof way to get the random number into the query string. The page that generates the PDF can be accessed from multiple location s in the app and then posts to itself (as in "Form.DrawToWeb(Me, False, Filename, False)). If I force the browser to save the file, the caching is not an issue but IE seems to have trouble finding the file. Any way to make sure that the url is always different?

Re: Caching

Support · Apr 27, 2006
Hello, The reason you are facing this problem is because Acrobat Reader caches the values temporarily. So if you are getting the data from a query string and you are resubmitting the same query, the changes you make will not be reflected unless you make changes to the query. The other way of solving this problem is by appending a random number or time stamp to the query string every time it gets submitted making it a unique url. This will prevent the values from being cached. Thanks, ceTe Software Support Team