Is there a way to enable the pagespeed module in nginx using a request?

I saw that in Apache, it can be enabled or disabled using a query. For example www.site.com/?PageSpeed=on

In the Apache config pagespeed must be set to "off". In Apache, "off" means "off, but you can enable by URL request."

OK. But in nginx "off" means "off completely" and the URL is not included. In Apache, there is a third option to completely disable the module, and in NGINX I only know two "off" and "on". Documentation google pagespeed read but the question still remained.

Really that in nginx it is not possible?

Thank you all for the answers.

  • In Apache, "off" means "off, but you can enable by URL request" - and where did you read about it? As far as I can see, in the documentation of this, it seems, no. - aleksandr barakin
  • To disable HTML rewriting but continue to serve .pagespeed. resources and parse query options (for instance for? ModPagespeed = on) put this line in your configuration: ModPagespeed off To completely disable mod_pagespeed (.pagespeed. will always in 404s) use the following line: ModPagespeed unplugged - Mihail Politaev
  • hmm yes, apache has, indeed, three options: on, off and unplugged. and nginx has only two. so the answer to your question is: no, impossible . - aleksandr barakin
  • No, this is possible. After all, the documentation for nginx describes it. And here, the developers decided that this is a bug. groups.google.com/forum/?hl=ru#!topic/ngx-pagespeed-discuss/ ... But for example, the workaround they suggested didn’t work for me. - Mihail Politaev

0