Serving web resources (AXDs) with HTTP Compression through Windows Azure CDN

With Windows Azure CDN you must pass the QueryString parameter containing a compressible filename type (.js, .cs etc) or you are requesting a file by its original name (jquery.js, site.css, etc.) otherwise Accept-Encoding HTTP header will not be passed.

For example when using an AXD resource handler (WebResource.axd, etc.) only, the HTTP compression will not be performed because unless append a QueryString parameter with a .cs or .js extension. If you are using custom AXD resource handler, then you can just applied &group=core.js and &group=core.css in your combined minified resources and the compression worked as expected.

Original URI:


Modify as:

  • https://

Once the Azure CDN verify that it has.js in the querystring, it will return the compressed version of the resource.


Keywords: Windows Azure, CDN, AXD, Resource

Comments (1)
  1. Twix says:

    Hi Chauhan,

    I am currently facing this problem. How did you manage to modify the url ?

Comments are closed.

Skip to main content