File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes PDF plugin problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "PDF plugin problem" Watch "PDF plugin problem" New topic

PDF plugin problem

Mufaddal Khumri

Joined: Jun 13, 2002
Posts: 9
I have a Servlet that creates a PDF and sends it to the client browser. The client browser receives the pdf and displays it if it has the pdf plugin, if not it asks the user to save the file to disk.
The problem occurs on IE and Netscape on Windows XP. When the client browser has the plugin installed, it displays the pdf fine. But lets say the data for the pdf changes and the user sends a new request to the servlet for an updated pdf, the client browser fetches the previously cached pdf ??? How do i stop this from happening ? How do I force the browser to get the "new" pdf and not fetch the old pdf from the cache ? In IE i erased all cached files and i still got the old pdf. It seemed as if the plugin stored the cached pdf ??? (This conjecture might be wrong). In anycase how do i make sure that the client browser gets the new pdf and does not fetch the cached copy?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Not getting much response here. Let's move this to . . . hmmmm . . . well, let's try advanced first.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: PDF plugin problem
It's not a secret anymore!