Posts Tagged ‘IIS’

Microsoft IIS 7: Enable Client Side Browser Caching for static Content in Web.config

To optimize the performance of a web site that is hosted in Microsoft’s Internet Information Server 7 it is reasonable to enable client side browser caching for static content (like for example image files, CSS files or JavaScript files) that probably won’t change in the near feature. You can find more information and best practices […]

Read more…

ASP.NET: Prevent IIS 7.5 from overriding custom error pages with IIS default error pages

I’ve created a ASP.NET MVC 3 application with custom error pages for HTTP status code 404 (“Not Found”) and 500 (“Internal Server Error”). I registered my custom pages in the Web.config as follows: <configuration> <system.web> <customErrors defaultRedirect="/Error/InternalServerError" mode="RemoteOnly"> <error redirect="/Error/NotFound" statusCode="404" /> <error redirect="/Error/InternalServerError" statusCode="500" /> </customErrors> </system.web> </configuration><configuration> <system.web> <customErrors defaultRedirect="/Error/InternalServerError" mode="RemoteOnly"> <error redirect="/Error/NotFound" […]

Read more…