This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi, 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?