Tim writes:
> 2) I did notice that the index page is about 10k larger between 1.0.3 and
> 2.1.1. This page is not compressed so it takes noticeable time to load
> on a dial-up. On a screen with 23 messages, netstat recorded about 46k
> with 2.1.1. It probably would be nice if this is compressed as well.
> The folders screen is another page that would benefit a lot from
> compression.
That's an easy one.
The tricky part is to use gzip only on those screens that need it.
Otherwise the overhead in starting gzip is not going to be worth it.
--
Sam
diff -U3 -r1.74 sqwebmail.c
--- sqwebmail/sqwebmail.c 2001/07/15 16:50:15 1.74
+++ sqwebmail/sqwebmail.c 2001/07/17 12:00:28
@@ -444,6 +444,8 @@
dogzip=0;
if (strcmp(formname, "readmsg.html") == 0 ||
+ strcmp(formname, "folder.html") == 0 ||
+ strcmp(formname, "folders.html") == 0 ||
strcmp(formname, "gpg.html") == 0)
{
const char *p=getenv("HTTP_ACCEPT_ENCODING");