does anyone know how to enable gzip text compression in nginx and universal angular? I don't know where to start doing it
The gzip has nothing to do with Angular, it's a server thing.
In nginx you can enable it by setting gzip on;
Like below:
server {
gzip on;
gzip_types text/plain application/xml;
gzip_proxied no-cache no-store private expired auth;
gzip_min_length 1000;
...
}
See the article below for more details:
https://docs.nginx.com/nginx/admin-guide/web-server/compression/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With