« Previous Next »

Thread: PDF Caching with IIS 6

Last post 08-20-2009 6:01 PM by tomkmvp. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-20-2009, 11:25 AM

    • trboyden
    • Not Ranked
    • Joined on 03-25-2009, 6:03 PM
    • Posts 2

    PDF Caching with IIS 6

    We have an ASP.NET web application on a Windows 2003 R2 SP2 server that calls a PHP script on a Sun/Apache content server to retrieve (force download) PDF files. If a PDF changes after it has been downloaded/viewed from the IIS server, the old version of the PDF file is still provided by the IIS server. Running the PHP script directly, the newer version of the PDF file is downloaded. We set it up this way because the file download performance is faster pulling the file directly from the server where the content lives. Anyone have any idea what is causing the PDF to be cached on the IIS server, and how to stop it from caching the PDFs?

    Thanks,

    Tim

  • 08-20-2009, 12:48 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,216

    Re: PDF Caching with IIS 6

    trboyden:
    We have an ASP.NET web application on a Windows 2003 R2 SP2 server that calls a PHP script on a Sun/Apache content server to retrieve (force download) PDF files.
     

    How?

  • 08-20-2009, 1:00 PM In reply to

    • trboyden
    • Not Ranked
    • Joined on 03-25-2009, 6:03 PM
    • Posts 2

    Re: PDF Caching with IIS 6

    The ASP.NET web page has a VB subroutine that executes a Response.Redirect call to the PHP script on the other server. The PHP script pulls values passed through the Querystring to determine which PDF file to force the download of and the download box appears to the end-user to save or open the file.

    We tried using a similar force download call in VB through a Virtual Directory redirect to the content server, but it resulted in delays up to 2 to 3 minutes (or longer depending on the size of the file) to display the file download box. With this method the box appears immediately.

  • 08-20-2009, 6:01 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,216

    Re: PDF Caching with IIS 6

    trboyden:
    a VB subroutine that executes a Response.Redirect call to the PHP script on the other server

    In that case, IIS never sees the file.  The browser makes a direct request.  You can confirm this by checking the logs on the PHP server.

Page 1 of 1 (4 items)
Microsoft Communities