问题
Is there an equivalent to mod_pagespeed Apache module but for IIS?
回答1:
IISpeed is a full-featured pagespeed port to IIS. It requires a paid license for production servers to avoid showing a banner, but it is free to try out.
Full disclosure: I am one of the people working on the port. So I will not push this further than mentioning the port.
回答2:
This isn't a direct mod_pagespeed
replacement but does some work towards reducing the number of requests, minifying and bundling JS and CSS.
It even automatically provides lossless compression of PNG-images and creates sprites of your background images. See the RequestReduce library.
(not tried it myself)
回答3:
There aren't any solutions that do exactly what mod_pagespeed does at this time. There are several individual packages you could use to match most of the functionality.
- The product @alirobe mentioned (aptimize) does many of them.
- YUI Compressor (.Net port) works on JavaScript and CSS minification
- IIS (version 5.1 and newer; though much easier to configure in IIS7+) can be configured to do GZIP compression for static and dynamic files
- You can set Expires headers in IIS for static files, and in back-end .Net code for dynamic pages
- .Net 2.0 can do some script combining with explicit configuration via the
<asp:ScriptManager>
control - .Net 4.0 has even more script combining abilities and can do more with less configuration. (example discussion of some of the new features)
- UPDATE: .Net 4.5 further extends script combining with minification.
- Scott Hanselman wrote The Importance (and Ease) of Minifying your CSS and JavaScript and Optimizing PNGs for your Blog or Website that lists many other individual packages that can be combined.
回答4:
No.
Not right now, at least.
Do keep in mind, however, that mod_pagespeed
is an automation of the best practices of web caching and speeding and you can manually set those up. PageSpeed Extension and YSlow extension are both very helpful to understand what should be optimized.
回答5:
I don't believe there's a free one, but there is : http://www.aptimize.com/
update: Of course, if you're using any other automated deployment tool, you could do quite a bit by integrating commandline tools into the build batch script. HTML5 Boilerplate is probably your best practice reference there. You can also use server-side tricks like HttpCombine.ashx.
来源:https://stackoverflow.com/questions/4106706/is-there-an-equivalent-to-the-mod-pagespeed-apache-module-for-iis