Compress Javascript files using GZipEncoding in IIS 7.0 web server
By [)ia6l0 iii
You need to define the Javascript file extension as Static content and enable the compression.
Step 1: Define the static content.
<staticContent>
<remove
fileExtension=".js" />
<mimeMap fileExtension=".js" mimeType="text/javascript"
/>
</staticContent>
Step
2: Apply compression.
<httpCompression>
<staticTypes>
<add mimeType="text/*" enabled="true"/>
<add mimeType="application/javascript" enabled="true"/>
</staticTypes>
</httpCompression>
You would need to add these under the System.WebServer node.
Related FAQs
Follow these steps to find the logs created by IIS.
You can use the ScriptManager to find if a postback is for a partial rendering of a page. The ScriptManager provides us the IsInAsyncPostBack property to determine this.
You can check the contenttype of the request, and figure out if the request is an JSon request
You can check the contenttype of the request, and figure out if the request is an Ajax request
Follow these steps to move your ssl certificates from the IIS 6.0 web server to its new version.
Compress Javascript files using GZipEncoding in IIS 7.0 web server (1215 Views)