MSDN Archive Home
Help and FAQs
FastMVC: Compress and Cache Dynamic and Static requests
All Resource Updates
Change History (all pages)
Load dynamic pages 5 to 20 times faster by compressing response on the fly
Serve static files (js, html, css) 10 to 100 times faster by compressing and caching their content
Improve repeated site load time by maximizing caching on browser
There are several problems with ASP.NET MVC application when deployed on IIS 6.0:
Extensionless URLs give 404 unless some URL Rewrite module is used or wildcard mapping is enabled
IIS 6.0 built-in compression does not work for dynamic requests. As a result, ASP.NET pages are served uncompressed resulting in poor site load speed.
Mapping wildcard extension to ASP.NET introduces the following problems:
Slow performance as all static files get handled by ASP.NET and ASP.NET reads the file from file system on every call
Expires headers doesn't work for static content as IIS does not serve them anymore. Learn about benefits of expires header from here. ASP.NET serves a fixed expires header that makes content expire in a day.
Cache-Control header does not produce max-age properly and thus caching does not work as expected. Learn about caching best practices from here.
After deploying on a domain as the root site, the homepage produces HTTP 404.
Install an HttpModule that installs a Compression Stream on Response.Filter so that anything written on Response gets compressed. This serves dynamic requests.
Replace ASP.NET's DefaultHttpHandler that listens on
for static files.
Download the latest code from "Downloads" tab
Read details about this on my blog:
Jun 30 2008 at 11:01 AM
, version 6
Sign in to add a comment
Mon Jun 30 2008 at 7:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.