Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm testing mod_pagespeed on a varnished powered server and wondering a couple things:

  • How can I test to see that they are playing nice with one another?
  • Can mod_page speed effectively replace Varnish?

Thanks for any insites.

share|improve this question
add comment

1 Answer

Yes, they can play together.

Varnish is a reverse proxy and is able to handle a big number of requests and serves documents from it's cache. You have to allow caching in Apache's configuration (I use mod_expire for this).

Google's mod_pagespeed is able to optimize your content on demand. It doesn't change the stored files for a website, it modifies the files in the moment you are requesting them.

For example: mod_pagespeed can modify your HTML page and instead of a page with 10 CSS files and 15 JavaScript files you will provide an optimized version with one packed and minimized CSS file and one packed and minimized JavaScript file. The web site you have stored contains 25 documents, the web site your are delivering contains 2 documents.

share|improve this answer
    
Thanks for the info...What do you think about part 2? Can mod_page speed replace varnish? –  mpaler Mar 29 '12 at 19:54
    
I think no. Varnish is a reverse proxy and mod_pagespeed an optimizer module. So how can butter replace bread? They can work together or on one's own. –  Jens Bradler Apr 4 '12 at 7:49
    
FYI -- more info on this topic at the mod_pagespeed google group –  mpaler Apr 4 '12 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.