Skip to Content
Feb 13, 2004 at 03:15 PM

Compression and Page Fragments



In a view I include several page fragments using the <%@include... tag. The view has compression set on (remove leading/trailing spaces, carriage returns,?.). The result is, that all HTML-Code from the view is compressed, the HTML from the included page fragment is NOT compressed. Is this correct? I would have expected, that the view options are inherited to all includes.

In my BSPs I can save up to 25% using the compression, so I would like to compress all my includes too. But page fragments doesn?t have a compression option. Is there a way to compress page fragments? Or should I change the page fragments to views an include these? Does this have any disadvantages (except of redefining all page attributes)?