Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

How to disable pagespeed query parameters? #2101

Open
tomasdev opened this issue Sep 4, 2022 · 1 comment
Open

How to disable pagespeed query parameters? #2101

tomasdev opened this issue Sep 4, 2022 · 1 comment

Comments

@tomasdev
Copy link

tomasdev commented Sep 4, 2022

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;
    }
@jmarantz
Copy link
Contributor

jmarantz commented Sep 4, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants