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_urlsnginx
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_urlsis not in CoreFilters, the default RewriteLevel; it runs only when you enable it by name withEnableFilters. - How do I enable decode_rewritten_urls on Apache and nginx?
- Add
ModPagespeedEnableFilters decode_rewritten_urlson Apache orpagespeed EnableFilters decode_rewritten_urls;on nginx. On IIS, addpagespeed EnableFilters decode_rewritten_urlsto pagespeed.config.
Related filters
- add_base_tag — Add base tag
- add_head — Add head
- add_ids — Add IDs
- add_instrumentation — Add instrumentation
- collapse_whitespace — Collapse whitespace
- combine_heads — Combine heads
- compute_statistics — Compute HTML statistics
- convert_meta_tags — Convert meta tags
This page is drawn from the decode_rewritten_urls entry on HTML filters. Every filter in one table: PageSpeed filters.