Comment 10 for bug 325982

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

It seems there are three main approaches to shortening the canonical URLs.

1. Remove fields with default values. (75% reduction in length for the original example URL.)

2. Shorten the parameter names and their possible values, starting with those that are repeated most often. For example, "status%3Alist=NEW&status%3Alist=INCOMPLETE_WITH_RESPONSE&status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&status%3Alist=CONFIRMED&status%3Alist=TRIAGED&status%3Alist=INPROGRESS&status%3Alist=FIXCOMMITTED" could be shortened to "s=N&s=IWR&s=IWOR&s=C&s=T&s=IP&s=FC". (36% reduction in length for the original example URL, shortening only the bug statuses.)

3. Remove the "field." prefixes, which I reported as bug 87229. (18% reduction for the original example URL.)

After that changes start getting more incremental. One example is making beta-testing entirely cookie-based rather than URL-based, so post-redirect URLs would no longer ever contain "edge." (though that would fix several other bugs too).

There may be relevant implementation ideas in the equivalent bug report for Bugzilla <https://bugzilla.mozilla.org/show_bug.cgi?id=15809>, though it seems they only ever partially fixed it.