how to debug why pagespeed is off for one request?

10 views
Skip to first unread message

Alex Wu

unread,
Mar 13, 2017, 12:42:26 PM3/13/17
to pagespeed-dev
Hi, I am testing pagespeed with https://teams.microsoft.com/. I always got pagespeed is off from debug log. I searched hostname, didn't see anywhere the pagespeed is off for the hostname. What other reasons that pagespeed can be off for this response? The content type is text/html. Where should I add debug statements to trace the rason why pagespeed is off for this reponse?

Alex

Otto van der Schaaf

unread,
Mar 13, 2017, 1:19:51 PM3/13/17
to Alex Wu, pagespeed-dev
A good entrypoint may be https://github.com/pagespeed/mod_pagespeed/blob/master/net/instaweb/rewriter/rewrite_query.cc

It's a shot in the dark, but if the server responds with "cache-control: no-transform", pagespeed may decline optimization. I'm not sure that this applies to html streams in your setup, but it might be worth checking.
If you are running into that, you can toggle an option to tweak the behaviour: https://modpagespeed.com/doc/configuration#notransform

Otto


On Mon, Mar 13, 2017 at 5:42 PM Alex Wu <yw9...@gmail.com> wrote:
Hi, I am testing pagespeed with https://teams.microsoft.com/. I always got pagespeed is off from debug log. I searched hostname, didn't see anywhere the pagespeed is off for the hostname. What other reasons that pagespeed can be off for this response? The content type is text/html. Where should I add debug statements to trace the rason why pagespeed is off for this reponse?

Alex

--
You received this message because you are subscribed to the Google Groups "pagespeed-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pagespeed-de...@googlegroups.com.
To post to this group, send email to pagesp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pagespeed-dev/c1f2ccf7-30f8-4f27-bcf0-d6212d368087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Wu

unread,
Mar 13, 2017, 1:32:43 PM3/13/17
to pagespeed-dev, yw9...@gmail.com
Thank you very much. I'll look into it from your clues.

Alex
Reply all
Reply to author
Forward
0 new messages