I am trying to do performance optimization for an ASP.NET web application. At the moment I have a gzip aspx main page (using the technique from How to implement GZip compression in ASP.NET? ), And merge and gzip javascript files that (using http://atashbahar.com/post/Combine-minify-compress -JavaScript-files-to-load-ASPNET-pages-faster.aspx ).
But I notice that there are 2 fairly large scripts that I think are loaded automatically by the framework. It seems to be for postback processing (21kb) and for asp: Menu processing that I have (32kb). In firebug they are displayed as http: // localhost:? 51061 / WebResource.axd d = v_Vv17tAURCE6646oHs1gmtwuRnH_kz1noYhRYi4pZJ3gy5A9YfvH6xvbJzjQds1dcPcTJ5q0OMwnGYfryCxn0MPoOgKTchA4WCQfDaV-F01 & t = 634619019774587441 or something like that.
Is there a gzip way for these files or, better yet, also combine it with the rest of my javascript files? I cannot change the ISS setting, which seems to be a suggestion from some other threads.
Update:
Sorry, he's a little confused between content and content content. In any case, your update does not tell me what to do to fix this? In any case, this is the header for the javascript file that was successfully encoded:
HTTP/1.1 200 OK Server: ASP.NET Development Server/10.0.0.0 Date: Fri, 09 Mar 2012 01:34:19 GMT X-AspNet-Version: 4.0.30319 Content-Length: 12552 Content-Encoding: gzip Cache-Control: public, max-age=2592000 Expires: Sun, 08 Apr 2012 01:34:19 GMT Content-Type: application/x-javascript Connection: Close
This is the header for system javascript that hasn't received the encoding:
HTTP/1.1 200 OK Server: ASP.NET Development Server/10.0.0.0 Date: Fri, 09 Mar 2012 01:34:19 GMT X-AspNet-Version: 4.0.30319 Cache-Control: private Expires: Sat, 09 Mar 2013 01:34:19 GMT Last-Modified: Wed, 11 Jan 2012 10:06:17 GMT Content-Type: application/x-javascript Content-Length: 21823 Connection: Close
In the request header, both have Accept-Encoding: gzip, deflate
source share