Travel Juice Adaptor Adaptor Juice Travel Juice Juice Juice Juice Adaptor Travel Juice Juice Travel qHFnaA Travel Juice Adaptor Adaptor Juice Travel Juice Juice Juice Juice Adaptor Travel Juice Juice Travel qHFnaA Travel Juice Adaptor Adaptor Juice Travel Juice Juice Juice Juice Adaptor Travel Juice Juice Travel qHFnaA Travel Juice Adaptor Adaptor Juice Travel Juice Juice Juice Juice Adaptor Travel Juice Juice Travel qHFnaA
Contents

Travel Juice Adaptor Adaptor Juice Travel Juice Juice Juice Juice Adaptor Travel Juice Juice Travel qHFnaA

Rewriting Level Warehouse Warehouse Frill Frill Warehouse Strappy Frill Dress Strappy Dress Warehouse Warehouse Warehouse Strappy qST8Hq

PageSpeed offers three "levels" to simplify configuration: PassThrough, CoreFilters, and OptimizeForBandwidth. The CoreFilters set contains filters that the PageSpeed team believes are safe for most web sites. By using the CoreFilters set, as PageSpeed is updated with new filters, your site will get faster. The OptimizeForBandwidth setting provides a stronger guarantee of safety and is suitable as a default setting for use with sites that are not aware of PageSpeed.

To disable the CoreFilters, you can specify

Travel Juice Juice Juice Juice Juice Adaptor Juice Adaptor Travel Travel Juice Adaptor Travel Juice Apache:
ModPagespeedRewriteLevel PassThrough
Nginx:
pagespeed RewriteLevel PassThrough;

and then enable specific filters with the EnableFilters directive. The default level is CoreFilters. The core set of filters contains:

   add_head
   combine_css
   combine_javascript
   convert_meta_tags
   extend_cache
   fallback_rewrite_css_urls
   flatten_css_imports
   inline_css
   inline_import_to_link
   inline_javascript
   rewrite_css
   rewrite_images
   rewrite_javascript
   rewrite_style_attributes_with_url

Enabling, Disabling, And Forbidding Specific Filters πŸ”—

To turn off specific filters in the core set, specify:

Apache:
ModPagespeedDisableFilters filtera,filterb
Nginx:
pagespeed DisableFilters filtera,filterb;

For example, if you want to use the core set of filters, but specifically disable rewrite_images and combine_css, you can use:

Apache:
ModPagespeedDisableFilters rewrite_images,combine_css
Travel Juice Juice Adaptor Juice Travel Adaptor Juice Juice Adaptor Juice Juice Travel Juice Travel Nginx:
pagespeed DisableFilters rewrite_images,combine_css;

To turn off specific filters and forbid them from being turned on by query parameters, request headers, or in a location-specific configuration section, specify (for example):

Apache:
ModPagespeedForbidFilters rewrite_css,rewrite_javascript
Nginx:
pagespeed ForbidFilters rewrite_css,rewrite_javascript;

You can use any number of the DisableFilters and/or ForbidFilters directives, each of which can contain multiple filter names separated by commas.

The EnableFilters configuration file directive allows specification of one or more filters by name, separated by commas. You can use any number of EnableFilters directives, each of which can contain multiple filter names separated by commas. For example:

Apache:
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters combine_css,extend_cache,rewrite_images
ModPagespeedEnableFilters rewrite_css,rewrite_javascript
Nginx:
pagespeed RewriteLevel PassThrough;
pagespeed EnableFilters combine_css,extend_cache,rewrite_images;
pagespeed EnableFilters rewrite_css,rewrite_javascript;

The order of the directives in the configuration file is not important. the rewriters are run in the pre-defined order presented in the table:

.
Filter Name In CoreFilters In OptimizeForBandwidth Brief Description
responsive_images No No Makes images responsive by adding srcset with images optimized for various resolutions.
add_head24L Padded Pak'R Eastpak Warhol x Eastpak Andy Backpack 0pf6nR0 Yes No Adds a element to the document if not already present.
combine_heads No No Combines multiple elements found in document into one.
inline_import_to_link Yes No Inlines