varnish and mod_pagespeed

Łukasz Rysiak lury at
Thu Jun 20 10:07:09 CEST 2013

David, please read this thread on google mps forum, where i described the
same problem and got the solution from mps developers.!topic/mod-pagespeed-discuss/j7X4uSckXlg

You can add header which will force mps to do full optimisation before
sending a response to varnish.


Łukasz Rysiak
Critical - Conversion Experts
tel. 792 448 678

2013/6/20 <me at>

> hi,
> > 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
> > one?
> maybe you can configure mod_pagespeed to set a header when it is only
> passing through the page.
> and i thought the recommended setup is to have mod_pagespeed before
> varnish, but i've never set it up.
> good luck,
>  tobias florek
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list