Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

545
Views
How to enable gzip compression on production build in angular 12?

1.Integrated new web.config.js for gzip compression, https://i.stack.imgur.com/MuVt4.png

2.Updated angular.json file, "build": { "builder": "@angular-builders/custom-webpack:browser", "options": { "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "customWebpackConfig": { "path": "./webpack.config.js" },

dist files are compressed with .gz extention and but it is not reflecting on browser after deployment.

3.'content-encoding:gzip' is not showing on browser network response header, https://i.stack.imgur.com/nkSoV.png.

is there anything to handle on server side for enabling this?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

if you are using web servers like apache / nginx you can enable gz compression on your web server

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!