I have written a script that displays a pdf to the browser.  This pdf is of
very sensitive nature and we don't want it to cache on the users machine for
security reasons.  
Currently, when some of our users try and view a pdf, instead of Acrobat
Reader spawning, they are getting a dialogue window that asks them to save
or open.  Either of these options results in an error and they are unable to
view the pdf.  What should happen is Reader automatically spawns and opens
the pdf.  I'm nearly certain that I have found the problem.  It is the
Cache_control attribute in the header below.  When I take it out it seems to
work fine.  The expires=>now part doesn't stop caching unfortunately.

I'm needing some advice or information that will assist me in fixing this
problem and not allow cacheing.  I do understand it is impossible to
entirely stop caching but we want to stop most browsers from doing so.

Any help from you experts would be greatly appreciated.
byron wise

 print $q->header (-expires => 'now', -type => 'application/pdf',
-Cache_control => 'no-store');



"When you sell a man a book, you don't sell him 12 ounces of paper and ink
and glue - you sell him a whole new life." - Christopher Morley

"Thanks O'REILLY." - Me





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to