RequestReduce provides several [configuration options] (http://github.com/mwrock/RequestReduce/wiki/RequestReduce-Configuration-options) to support [CDN hosting] (http://github.com/mwrock/RequestReduce/wiki/Can-I-have-all-RequestReduce-CSS-and-sprite-resources-pulled-from-a-CDN%3F), [multiple server environments] (http://github.com/mwrock/RequestReduce/wiki/Will-RequestReduce-sync-css-and-sprite-image-files-accross-all-of-the-web-servers-in-my-web-farm%3F) and more.
- If you have [Nuget] (http://docs.nuget.org/docs/start-here/installing-nuget), simply enter
Install-Package RequestReducein the Package Manager Console and skip steps two and three, otherwise download the latest RequestReduce version [here] (http://www.requestreduce.com/)
- Extract the contents of the downloaded zip and copy RequestReduce.dll and optipng.exe to your website's bin directory
- Add the RequestReduceModule to your web.config or using the IIS GUI.
Assuming you are using IIS 7, you would add it by ensuring that your web.config's system.webServer/modules element contains an add element as follows:
<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="RequestReduce" type="RequestReduce.Module.RequestReduceModule, RequestReduce, Version=22.214.171.124, Culture=neutral" /> </modules> </system.webServer>
All background images you want to sprite [must have an explicit width in their css class] (http://github.com/mwrock/RequestReduce/wiki/Can-I-make-changes-to-my-CSS-classes-to-optimize-RequestReduce-spriting%3F). Otherwise RequestReduce cannot guarantee that the background positions it injects will not cause adjacent sprites to bleed into a background image's view port. Also, RequestReduce will ignore repeating images so make sure to mark the image no-repeat if it is not a repeating image.
- Thus far, RequestReduce has only been tested using the .Net framework version 4 on IIS 7
- The identity that your asp.net worker process runs under must have write access to your web root directory for creating sprite and css files
##What's Next? There are a ton of features I intend to add in order to make web performance optimizations just happen as part of installing Request Reduce. Here is what's at the top of the backlog:
- Leverege CSS 3 to allow RequestReduce to sprite more images without any need for css modifications for supporting browsers
- Options to sprite foreground images
- Provide a command line utility for incorporating RequestReduce optimizations into a build task
- Read more about what is available in Request Reduce on the [wiki] (http://github.com/mwrock/RequestReduce/wiki).
- Follow [@mwrockx] (http://twitter.com/mwrockx) for updates on twitter
- Report a bug or suggest a feature [here] (http://github.com/mwrock/RequestReduce/issues)
##License Licenced under [Apache 2.0] (http://www.apache.org/licenses/LICENSE-2.0)