Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed bad links due to copy-paste from cwiki-test

...

This directly applies to both rendered pages and streamed assets from the classpathCLASSPATH.

Context assets will also be compressed ... but this requires referencing such assets using the "context:" binding prefix, so that generated URL is handled by Tapestry and not the servlet container.

...

In addition, some file types are already compressed and should not be re-compressed (they actually get larger, not smaller!). The service ResponseCompressionAnalyzer's configuration is an unordered collection of content type strings that should not be compressed. The default list of content types that are NOT compressed are:

  • image/* (image/jpeg, image/png, image/gif, etc) except image/svg+xml, which is compressed
  • application/x-shockwave-flash
  • application/font-woff
  • application/x-font-ttf
  • application/vnd.ms-fontobj

StreamResponse

When returning a StreamResponse from a component event method, the stream is totally under your control; it will not be compressed. You should use the ResponseCompressionAnalyzer service to determine if the client supports compression, and add a java.util.zip.GZIPOutputStream to your stream stack if compression is desired.