varnish and mod_pagespeed

David Urbansky davidurbansky at
Thu Jun 20 01:26:12 CEST 2013


I am using Apache with mod_pagespeed (with
"ModPagespeedModifyCachingHeaders off" to allow caching) but
mod_pagespeed does usually not optimize the first request to a page.
Optimizations are done in the background and are then present for
subsequent requests.

The problem is that varnish caches the first request - an unoptimized
page. I wonder whether somebody has found a way to tell varnish to
ignore the first request after the ttl is over and cache the second

Does anybody have this setup running?

Thank you and kind regards,

More information about the varnish-misc mailing list