compressHTML recommended configuration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compressHTML recommended configuration

Varun Bhansaly
Hi,

I'm using ofbiz 10.04, whats the best & recommended way of enabling HTML
whitespace compression.

1. Is it by uncommenting in widget.properties compress.HTML, OR
2. by specifying compressHTML context parameter in web.xml ? If yes, then
would this need to be done for all web apps ?

--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: compressHTML recommended configuration

Jacques Le Roux
Administrator
To be sure use both compress.HTML and also screen.compress=true in widget.properties if you want it to all web apps (look for them
in Java code you will understand the advice)
If you want only some web apps then compressHTML in respective web.xml files

Note that I have recently proposed to increase the compressHTML buffer from 2KB (Freemarker default) to 10KB, will be in trunk only
though...

Jacques

From: "varun bhansaly" <[hidden email]>

> Hi,
>
> I'm using ofbiz 10.04, whats the best & recommended way of enabling HTML
> whitespace compression.
>
> 1. Is it by uncommenting in widget.properties compress.HTML, OR
> 2. by specifying compressHTML context parameter in web.xml ? If yes, then
> would this need to be done for all web apps ?
>
> --
> Regards,
> Varun Bhansaly
>