Chrome gzip RFC compatibility issue
Just a little issue I recently stumbled upon. According to the RFC specification gzip files can be easily stapled together by just putting the binaries one after the other:
2.2. File format
A gzip file consists of a series of "members" (compressed data sets). The format of each member is specified in the following section. The members simply appear one after another in the file, with no additional information before, between, or after them.
However, Chrome does not support this and will only care about the first gzip member, ignoring what comes afterwards.
The reason I stumbled upon this is that I wanted to separate a dynamic javascript file that is delivered to this homepage into a static and a dynamic part.The plan was to pre-gzip the static part and concatenate the zipped parts during file serving.By doing this only the small dynamic part would be needed to be compressed during serving.Due to the aforementioned Chrome bug this plan is basically a dead-end.