I have an app that lets a user enter some parameters, generates a Crystal Report then exports it to a PDF file and provides the user a hyperlink to that file. Sometimes after running multiple reports with different parameters, clicking the link will open a cached version of the file in the Acrobat plugin instead of the new one. I have verified that the correct file is being generated and the old one is being deleted, but the user still gets the old file. Clicking refresh on the IE toolbar brings up the correct file.
Is there a way to force this link to get the new file instead of a cached version? I know with an ASP or HTML page, you can do this in a page directive but I can't figure out how to do it with a PDF file. Is there anything that can be set in web.config that will prevent caching for the whole app? All the app does is generate reports, and they change based on the parameters entered, so I really don't want anything to be cached.
Is there a way to force this link to get the new file instead of a cached version? I know with an ASP or HTML page, you can do this in a page directive but I can't figure out how to do it with a PDF file. Is there anything that can be set in web.config that will prevent caching for the whole app? All the app does is generate reports, and they change based on the parameters entered, so I really don't want anything to be cached.