blackberry / WebWorks

BlackBerry WebWorks for Smartphones is a platform for building deeply integrated web applications for BlackBerry smartphones
http://developer.blackberry.com/html5
268 stars 51 forks source link

Compressed local content #125

Open gluth opened 11 years ago

gluth commented 11 years ago

It would be nice for WebWorks to support locally compressed files, by example: website requests styles.css there is no such file in package, but there is a file called styles.css.gz, which is filtered through ZipInputStream and returned to browser. This would drastically lower package sizes, and would increase loading times on older phones (flash storage is slower than memory and processor).

paradisaeidae commented 11 years ago

Agreed!

gluth commented 11 years ago

I think that it can be also solved, by adding Content-Encoding: gzip, when in incoming headers there is AcceptEncoding: gzip. Then there is no need to decompress it on the fly by framework itself (it will be done much quickier by native browser functions).