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.

Control Mod_Pagespeed using environment variables #201

@GoogleCodeExporter

Description

@GoogleCodeExporter
Request:

A mechanism for disabling Mod_Pagespeed for specific requests or clients based 
on environment variables set using BrowserMatch, SetEnvIf or other directives.

Similar options already exist for mod_deflate and other modules, but this might 
be at the Apache level rather than just in the modules themselves? 
http://httpd.apache.org/docs/2.2/env.html#special

Example usage: SetEnvIfNoCase Request_URI \.js$ no-gzip dont-vary

Reason:

To be able to turn off Mod_Pagespeed for a directory that only exists due to 
mod_rewrite rules.
e.g. SetEnvIf Request_URI /edit/ no-pagespeed

Where there is no /edit/ directory on the file system:
e.g. RewriteRule ^edit/(.*.html)$ $1?display_edit_mode=true

Could also be used to disable Mod_Pagespeed for particular User-Agents or 
remote addresses.

Thanks.

Original issue reported on code.google.com by dun...@chirp.com.au on 30 Jan 2011 at 4:05

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions