incubator-pagespeed-mod icon indicating copy to clipboard operation
incubator-pagespeed-mod copied to clipboard

How to disable pagespeed query parameters?

Open tomasdev opened this issue 3 years ago • 1 comments

I would like pagespeed to remain on but would like to disallow people from adding pagespeed query parameters to get different results of the site. Or, only allow it for a specific IP address (i.e., my own)

Is this possible through pagespeed or should I use my nginx's configuration to match .PageSpeed. ?

For now I'm using this workaround:

    if ($args ~ (.*)PageSpeed[^=]*=[^&]*(.*)) {
        set $args $1$2;
    }

tomasdev avatar Sep 04 '22 19:09 tomasdev

Yes! Doc for ModPagespeedRequestOptionOverride is here:

https://www.modpagespeed.com/doc/experiment#restrict-request-options

On Sun, Sep 4, 2022 at 3:38 PM Tomas @.***> wrote:

I would like pagespeed to remain on but would like to disallow people from adding pagespeed query parameters to get different results of the site. Or, only allow it for a specific IP address (i.e., my own)

Is this possible through pagespeed or should I use my nginx's configuration to match .PageSpeed. ?

— Reply to this email directly, view it on GitHub https://github.com/apache/incubator-pagespeed-mod/issues/2101, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO2IPJ6W7PMKVFQVGU3QZTV4T3CXANCNFSM6AAAAAAQEOO4EY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jmarantz avatar Sep 04 '22 19:09 jmarantz