Hello all,
does anyone have used the new feature @SetHTTPHeader in Domino R6?
I wonder if it can be used to instruct domino to send back a web page response using gzip content-encoding and content-type…
Thanks.
Hello all,
does anyone have used the new feature @SetHTTPHeader in Domino R6?
I wonder if it can be used to instruct domino to send back a web page response using gzip content-encoding and content-type…
Thanks.
Subject: HTTP headers
But you’d have to provide the gzip encoding of the content though. It’s probably more feasible to do this with a java agent or servlet, as java has gzip compression functions built in…
Subject: RE: HTTP headers
You´re right!
Do you know if it can be achived integrating Domino and IBM HTTP using apache modules as well?
Subject: RE: HTTP headers
some apache module can gzip content on the fly ? even dynamic pages ? (I mean without to much perf degradation ) ?
Subject: I don’t know
Subject: HTTP headers
I tested succesfully serving gzipped static files (css, js…) with R6 using HTTP Header web site rules.
I was thinking of doing a DSAPI filter that could gzip Domino generated HTML on the fly (with a cache mecanism etc…)…but no time to do it ![]()
Subject: RE: HTTP headers
Michael, good to hear it!
Can you tell me how did you do it? Did you used any third-party compress code to generate a gzip content?
Subject: RE: HTTP headers
I used an agent to gzip files, but those files were not dynamic html pages, only css and js files.
What I did is store css and js as notes document. A scheduled java agent gziped all. I exported both files (normal and gzipped) on the server on diefferent directory
ex:
/css or / js
/csszip /jszip
and I generated, on my Domino Dynamic pages, references to /css or /csszip based on User agent and HTTP_Via CGI Variables.
I used a http header rule to add the content encoding header to all request that matched /csszip and jszip
The next step would be to allow gzip serving of domino html generated pages. I can imagine 2 ways of doing it : a servlet that could act as a proxy tween users and domino server, or a DSAPI filter.
Subject: RE: HTTP headers
Do you know from where can I download a java code that compress data?
Subject: Start here
The java.util.zip package in Java2 1.3 has built-in GZIP support:JDK 23 Documentation - Home