4

Did anyone try the combination Drupal 7 + apache 2.2 + mod_pagespeed + varnish?

Does it produce any problem?

IS Drupal own CSS and JavaScript aggregation mechanism needed if mod_pagespeed is used?

2 Answers 2

4

Have yet to test it out. I do know that domain specific code CAN be better in comparison to a generalized tool like mod_pagespeed; but I would imagine it would take a lot of effort to beat mod_pagespeed. mod_pagespeed should bring an improvement in comparison to drupal's core aggregation; you will get CSS & JS Compression among some other nice things.

In Drupal land we are working on improving the page load time. Here are some projects for that.

Long story short: Use mod_pagespeed today; checkout some of these projects in the future.

8
  • if i use mod_pagespeed and varnish should i turn off any of drupal cache or aggregation settings at performance?
    – john
    Commented May 27, 2011 at 12:07
  • Do not have drupal 7 versions: bundlecache, advagg,closure_compiler. cdn does not work always as expected. ImageAPI Optimize looks useful. wpo does not exist yet
    – john
    Commented May 27, 2011 at 12:14
  • Keep the Drupal cache set to external if using varnish. Aggregation is a little tricky; I would say turn it off, but I would be sure to test it. Once advagg 7.x gets a stable release I would use that and turn off mod_pagespeed's CSS/JS file aggregation (I'm the maintainer of advagg if you where wondering, so I will be a little biased).
    – mikeytown2
    Commented May 28, 2011 at 3:03
  • thanks but there is no "external" cache settings in drupal 7. i think i had seen that in pressflow (based on drupal 6)
    – john
    Commented May 28, 2011 at 3:12
  • 1
    thanks for the link. i think an even better link is at swearingatcomputers.blogspot.com/2011/05/…. i just give it for reference reasons. about labjs drupal module: i think it is not as actively developed as the headjs one. labjs modules still did not update since march, whereas headjs module updates daily
    – john
    Commented May 28, 2011 at 5:04
0

I can confirm that Varnish won't work properly if mod_pagespeed is enabled. I tested, if mod_pagespeed enabled, Varnish stop caching anything.

For reference: http://code.google.com/p/modpagespeed/issues/detail?id=232#c4

1
  • mod_pagespeed works just fine with Varnish and any other upstream cache or CDN: all of the static assets are cache-extended. For the base HTML file, if you have your own purge strategy, or are willing to live with some stale TTL, then you can turn off the cache stripping (on rewritten HTML): developers.google.com/speed/docs/mod_pagespeed/…
    – igrigorik
    Commented Nov 9, 2012 at 6:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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