Good morning,
I am working on a shop running on the Shopware 6 platform. We are currently optimizing PageSpeed Insights, one of the recommendations is to enable text compression.
The application runs on platform.sh, where in the documentation we can read:
Response compression reduces payload sizes and generally increases your app's response times. Dynamic responses generated by your app aren't compressed because of a general security issue. While your app can compress its own response, doing so when the response includes any user-specific information, including a session cookie, opens up an attack vector over SSL/TLS connections. For that reason, you generally shouldn't compress generated responses.
However, I found such a package: https://github.com/middlewares/encoderAnd I think I could easily implement this in Symfony/Shopware to compress my responses directly into the application.
Is it good idea? Is it safe?
CodePudding user response:
Why you don't just activate compression (f.e. gzip) on your nginx, apache or whatever?
CodePudding user response:
You can contact the support at platform.sh to enable the gzip.