Skip to content

Instantly share code, notes, and snippets.

@thesaurabhk
Created June 2, 2017 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thesaurabhk/2b4156fa1004c3ab20b36088ef3c8b56 to your computer and use it in GitHub Desktop.
Save thesaurabhk/2b4156fa1004c3ab20b36088ef3c8b56 to your computer and use it in GitHub Desktop.
#
# Paste the following code into your .Htaccess file
#
# TN – ENABLE MOD PAGESPEED START
# COMBINE CSS, COMPRESS IMAGES, REMOVE HTML WHITE SPACE AND COMMENTS
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedEnableFilters rewrite_css,combine_css
ModPagespeedEnableFilters recompress_images
ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
ModPagespeedEnableFilters collapse_whitespace,remove_comments
</IfModule>
# TN – ENABLE MOD PAGESPEED END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment