views:

117

answers:

2

I have a web page that downloads a pdf version of an ssrs report through a link. However when I make changes to the data, the browser pulls up the same pdf file as before without the updated information (the pdf file stored in the temp folder). If I then go to another browser and download the PDF I get the new version, but the other browser still gets the old version. How can I force the browser to download a new version of the pdf report?

The url I use to create the pdf is below:

http://servername/ReportServer/Pages/ReportViewer.aspx?/MyReport/&rs%3ACommand=Render&ReportID=123456&rs%3AFormat=PDF

A: 

Any one of the flowing will work.

CptSkippy
@CptSkippy: Not necesarely. IE 6 doesn't mind of the Context-Expiration header and happily caches all it can.
voyager
@voyager : I think in the past there was confusion about what settings IE respected but Microsoft has clearly defined IE's behavior and my examples work when setup properly (http://support.microsoft.com/kb/234067).
CptSkippy
+2  A: 

I used the clearsession parameter to get a fresh pdf with updated information, it looks like this in the url:

http://servername/ ReportServer/Pages/ReportViewer.aspx?/MyReport/ &rs:Command=Render&ReportID=123456 &rs:Format=PDF &rs:ClearSession=true

Managing Report Sessions on a URL

betafish