SPUG: mod_perl download handler help needed

Brian Hatch spug at ifokr.org
Thu Nov 14 14:20:45 CST 2002

> This all works just great..... *until the user tries to download the
> file*.  Because the browser doesn't grab from the cache (tried both ie6
> and mozilla) the file that is downloaded is the html form because I
> assume, it's seeing the request again, and sending back the html form.

set the no-cache HTTP header for the document.  For example if you

sub handler {
        local $r = Apache::Request->new(shift);


change it to

sub handler {
        local $r = Apache::Request->new(shift);

That should disable any caching.

Brian Hatch                  A day without fusion
   Systems and                is like a day
   Security Engineer          without sunshine.

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://mail.pm.org/archives/spug-list/attachments/20021114/2e1d1c9f/attachment.bin

More information about the spug-list mailing list