• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Kriztine Mendoza

Senior .NET Developer & Tech Partner for Scalable Software Solutions

  • Home
  • About
  • Work
  • Services
  • Contact Me

WebResource.axd File Compression

September 28, 2017 by kriztine

I was working on a custom .Net CMS that needs optimization.  To analyze the performance of a particular page, we were using the PageSpeed Insights and Pingdom tools.

The PageSpeed Insights recommends minifying JavaScript files. After I have bundled and minified all the js files in the system, PageSpeed is still reporting the issue due to the WebResource.axd files.

The application’s WebResource.axd files come from Telerik and ASP.Net page with server-side controls.

The Telerik’s WebResource.axd file is already minified, so I have just added the ScriptMode=”Release” tag.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Release"></telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
</telerik:RadAjaxManager>

For the other WebResource.axd file, I had to create an HTTP module.

Implementation

  1. Write an HttpModule class named AxdCompressionModule.cs. After the axd files have been downloaded, it will be cached in the browser. The axd files will not be combined into a single file, though.
  2. Add settings to the web.config
<modules>
      <add name="AxdCompressionModule" type="ProjectName.Http.AxdCompressionModule, ProjectName" preCondition="managedHandler" />
</modules>

Filed Under: .Net Development, Tools Tagged With: ASP.Net Web Forms, PageSpeed Insights, Tools, Website Optimization

Primary Sidebar

Recent Posts

  • The tooltip or Intellisense for methods do not appear!
  • Scrollbar doesn’t show on Safari
  • WebResource.axd File Compression
  • X-Frame-Options header and X-Content-Type-Options = nosniff
  • Solved: Truncation Error when Importing from MS Excel to SQL Server

Categories

  • .Net Development (7)
  • Design (4)
  • How-To's (3)
  • Marketing (1)
  • Project Management (2)
  • Projects (1)
  • SQL (4)
  • System Administration and Configuration (2)
  • Tools (8)

Archives

SERVICES
  • Responsive Web Design
  • Custom Web/Software Development
  • Content Management System
  • API Development and Integration
  • Database Design and Management
  • System Configuration and Administration
QUICK LINKS
  • About
  • Services
  • Dev Notes
  • Resources
  • Contact me
GET IN TOUCH
  • +6349.539.1339
  • contact@kriztine.com
  • kriztine.tech@gmail.com

© 2025 · All Rights Reserved · Kriztine Mendoza

Attributions · Privacy Policy

"Whatever you do, work at it with all your heart, as working for the Lord..." - Colossians 3:23