Skip to main content

filter · HTML filters

Decode rewritten URLs (decode_rewritten_urls)

Category:
HTML
CoreFilters:
No
OptimizeForBandwidth:
No
Risk:
Not rated

Turns .pagespeed. resource URLs in the page back into the original resource URLs, undoing the URL rewriting of the other filters. Useful in a proxy chain or when debugging what the page referenced before optimization. Risk: the page then references unoptimized resources, which defeats the filters that depend on rewritten URLs.

When to use it

  • Not in CoreFilters: it runs only when you enable it by name.

Risks

The HTML filters page lists no specific risks for this filter. If a page misbehaves with it, DisableFilters decode_rewritten_urls turns it off for the scope you set it in.

Configuration

Enable it in the module configuration, at server, virtual-host or location scope:

Apache

ModPagespeedEnableFilters decode_rewritten_urls

nginx

pagespeed EnableFilters decode_rewritten_urls;

IIS (pagespeed.config)

pagespeed EnableFilters decode_rewritten_urls

Scoping, ForbidFilters and the thresholds filters read: Choosing filters .

Frequently asked questions

What does the decode_rewritten_urls filter do?
Turns .pagespeed. resource URLs in the page back into the original resource URLs, undoing the URL rewriting of the other filters. Useful in a proxy chain or when debugging what the page referenced before optimization. Risk: the page then references unoptimized resources, which defeats the filters that depend on rewritten URLs.
Is decode_rewritten_urls enabled by default?
No. decode_rewritten_urls is not in CoreFilters, the default RewriteLevel; it runs only when you enable it by name with EnableFilters.
How do I enable decode_rewritten_urls on Apache and nginx?
Add ModPagespeedEnableFilters decode_rewritten_urls on Apache or pagespeed EnableFilters decode_rewritten_urls; on nginx. On IIS, add pagespeed EnableFilters decode_rewritten_urls to pagespeed.config.

This page is drawn from the decode_rewritten_urls entry on HTML filters. Every filter in one table: PageSpeed filters.

Search