Skip to content

Instantly share code, notes, and snippets.

@Yinchie
Last active December 31, 2016 11:25
Show Gist options
  • Save Yinchie/85b12207bc7b0209ce0e803e787d7ccd to your computer and use it in GitHub Desktop.
Save Yinchie/85b12207bc7b0209ce0e803e787d7ccd to your computer and use it in GitHub Desktop.
My Ghost blog, NGiNX pagespeed config for specific "location"'s.
pagespeed RewriteLevel PassThrough;
pagespeed PreserveUrlRelativity on;
pagespeed NoTransformOptimizedImages on;
pagespeed EnableFilters rewrite_images,recompress_images,insert_image_dimensions;
pagespeed EnableFilters remove_comments,collapse_whitespace,extend_cache,convert_meta_tags;
pagespeed EnableFilters remove_quotes,insert_dns_prefetch;
pagespeed EnableFilters rewrite_css,fallback_rewrite_css_urls,rewrite_style_attributes,inline_css;
pagespeed EnableFilters rewrite_javascript;
pagespeed DisableFilters inline_images,combine_css,combine_javascript;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment