Click here to Skip to main content
13,665,882 members
Click here to Skip to main content
Add your own
alternative version

Stats

12.6K views
15 bookmarked
Posted 21 Nov 2014
Licenced CPOL

How to Improve Web Application Performance by Enabling Dynamic Compression for JSON and JavaScript

, 21 Nov 2014
Rate this:
Please Sign up or sign in to vote.
Learn how to configure dynamic compression in IIS 7.5 to improve performance

Introduction

We try to boost our website performance by doing several things like caching, bundling, minification and Image Sprites, etc. But we forget to do configuration for dynamic compression for our AJAX requests. Let’s see how we can achieve it.

To demonstrate it, I am using IIS 7.5. In IIS 7, you need to enable Dynamic compression. I am not going in that way.

IIS Configuration

Let’s open IIS7.5 and select server name. Then you will see Configuration Editor in right side pane. Click to open it.

Once Configuration editor opens, select the section as ‘system.webServer’ --> httpCompression by expanding tree.

After selecting, just open dynamicTypes as shown in screenshot.

Now you can see collection editor for dynamic compression. By default, you can see compression for text, message and JavaScript. If you don’t see, just add as we will do for JSON. Click ‘Add’ and enter given value application/json.

Same add application/json; charset=utf-8.

Now close window and click Apply right hand side as follows:

Reset IIS and test your app, see how much time dynamic compression can save for you. Time can be seen for Ajax request in chrome developer tool or Fiddler.

If you click on request, you can see compression as gzip.

Summary

In this tip, we saw how we can configure dynamic compression on IIS. It will improve performance for your HTTP calls.

Happy coding!!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ManojKumar19
Architect
United States United States
Manoj Kumar

AWS Certified Solutions Architect (Web development, Serverless, DevOps, Data)
MSSE - Cloud and Mobile Computing, San Jose State University

A wide range of experience in resolving complex business problems.

* Cloud Technologies: EC2, S3, DynamoDB & RDS databases, Lambda serverless architecture, Microservices architecture, API Gateway, Cloud Front CDN, Linux/Windows systems administration, CloudFormation, DevOps, Docker, CICD, Node.js, Python, Java and other open source technologies. Familiarity with OpenStack.
* Web Technologies: HTML5, Node.Js, MEAN Stack, AngularJS, ASP.Net Core, MVC5, CSS3, jQuery, Bootstrap, MongoDB, JavaScript, JSON, AJAX.
* Data: Experience in database architecture, Big Data, Machine Learning, BI, Data Analytics, No-SQL databases, ETL.
* Mobile: IOS/Android app development

He lives with his wife Supriya and daughter Tisya in Bay Area.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180810.1 | Last Updated 22 Nov 2014
Article Copyright 2014 by ManojKumar19
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid