I looked at setting the max-age. But our reports can take two seconds or 2 minutes, so I really couldn't figure out a good setting.
Matt Savino > -----Original Message----- > From: Sharan, Dharmendra [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 07, 2002 1:38 PM > To: '[EMAIL PROTECTED]' > Subject: RE: IE reloads the PDF document generated from servlet > multiplet imes (2 times!) > > > Hi Savino, > > Thanks so much, it works for me. > It definitely saves the extra time spent in reload of servlet. > > However I used the cache-control directive for IE :- > > ---------------------- > response.setHeader("Cache-Control", "max-age=10"); // > workaround so IE > does not refresh/reload PDF page again/twice > ---------------------- > > regds, > > Dharmendra > > -----Original Message----- > From: Savino, Matt C [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 07, 2002 1:51 PM > To: '[EMAIL PROTECTED]' > Subject: RE: IE reloads the PDF document generated from servlet > multiplet imes (2 times!) > > > This is a known issue. There seem to be several approaches, > which may depend > on your particular situation. There's a full discusssion of > this on the > fop-dev list under the subject 'FO -> PDF works with > Netscape, not with IE' > which has the code for my solution (you can find it in the > archives if not > subscribed). I believe this is also going to be in the FAQ soon. > > Please let me know if you have more questions. > > -Matt > > > > > -----Original Message----- > > From: Sharan, Dharmendra [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 07, 2002 9:41 AM > > To: [EMAIL PROTECTED] > > Subject: IE reloads the PDF document generated from servlet multiple > > times (2 times!) > > > > > > Hi FOP Users, > > > > Has anyone come across the problem of Servlet getting > > called multiple > > times by IE (ver 5.5) > > > > I use the following to render PDF using an input source, > > however I see in > > log that that IE calls my servlet 2 times! > > > > I use the following code as in the example for embedding > > fop in servlet - > > -------------------------------------------------- > > response.setContentType("application/pdf"); > > Driver driver = new Driver(inputSource, > > response.getOutputStream()); > > driver.setRenderer(Driver.RENDER_PDF); > > driver.run(); > > -------------------------------------------------- > > > > Aparently I noticed that after the first time my servlet is done > > processing the XSLT, IE 5.5 launches the PDF pluggin!, > > The PDF pluggin again repeats the whole XSLT transform, > > and only then it > > display the PDF output. > > > > Anybody has similar experience with IE 5.5 ? any > > ideas/suggestions are > > appreciated. > > > > Thanks!, > > > > Dharmendra > > >