jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "ExamplesPage" by BearGiles
Date Tue, 19 May 2009 17:17:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by BearGiles:
http://wiki.apache.org/jackrabbit/ExamplesPage

The comment on the change is:
Adding notes about providing PDF documents to clients.

------------------------------------------------------------------------------
  Repository repository = factory.getRepository("rmi://localhost:1100/jackrabbit");
  }}}
  
+ === Sending PDF Content ===
+ 
+ Sending PDF content can be tricky due to some browsers being picky.  What we
+ use at my site is:
+ 
+ * If you provide a filenaem, e.g., in a Content-Disposition heaer, you
+ '''must''' use a .pdf extension.  MSIE will look at filename extensions
+ instead of the mime-type.Addi
+ 
+ * Set the Content Length in the header.  This seems to be the biggest help.
+ 
+ * If you use HTTPS you '''must''' not set the Cache-Control pragma to 'no-cache'.
+ MSIE is very literal and will discard your content before it can read it!
+ 
+ * You need to play with the Content-Disposition header.  At our site we use
+ 'attachment;filename=...' for Firefox, and 'inline' for all other browsers, but we
+ have some weird needs.
+ 
+ 
  === Jackrabbit Cache Configuration ===
  This info has moved to the CacheManager page.
  

Mime
View raw message