Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

How to disable pagespeed query parameters? #2101

@tomasdev

Description

@tomasdev

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions