breautek commented on issue #194: unable to Gzip and Deflate compression in root www folder for multiple file formats URL: https://github.com/apache/cordova/issues/194#issuecomment-577931170 I see. This would require significant changes on the native side of each platform. The browser gzip functionality is part of their network stack, so it is not used when files are being loaded from the filesystem, which means each native implementation would have to include a gzip implementation and override resource loading (if that is even possible) I don't consider this a win-win, especially for the level of maintenance (high-risk to be app-breaking if something goes wrong) that would be required in the future. > We should have the option to do it like in previous versions. Cordova has never had a feature that compresses the `www` directory or any file inside that directory. It simply copies the files to the native app project that it manages for you. Cordova can use a remote URL as it's content loading point, and the webserver can use gzip so perhaps this is what you were thinking about, but this is **NOT** the recommended approach for final deployments, as it can be a reason for app rejection from the app stores. Don't forget that, at least on android, APKs are already compressed (they are simply zip files afterall). I think it's safe to assume that the iOS IPA files are also compressed, though I don't know for sure. If you want this kind of functionality, it would be better suited as a cordova plugin. For the reasons above, I'll be closing this ticket.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
