HTTP Headers & Cache Control

What are all of the possible techniques for using HTTP headers to prevent caching. In particular, I'm having problems with Proxy Servers caching PDF documents on my network. There is a way to add HTTP headers in IIS 4.0 which is what I'm trying now. Does anyone have any other ideas?


Comments

  • : What are all of the possible techniques for using HTTP headers
    : to prevent caching. In particular, I'm having problems with
    : Proxy Servers caching PDF documents on my network. There is a
    : way to add HTTP headers in IIS 4.0 which is what I'm trying
    : now. Does anyone have any other ideas?
    :

    Hi,

    There are several ways to do it. I'm putting down some links and info.

    1. The HTTP headers have to be changed to
    [code]
    pragma: no-cache

    cache-control: no-cache

    content-type: content_type


    [/code]
    instead of just "content-type".
    Now this thing can help if you are outputting .PDF files not directly, but by some CGI program reading out the PDF binary contents and sending them to the user via browser.

    2. The above is just a suggetion on how to proceed. To configure IIS 4.0 for this exactly, read the following Microsoft KB article. It tells you exactly what you want:
    http://support.microsoft.com/support/kb/articles/Q189/4/09.ASP

    There can be other ways too...but they'll require you to code or change your schema a bit (like the first solution above did).

    Tell us if the above worked.

    :-)


    Manish.



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion