<IfModule !mod_version.c>
LoadModule version_module modules/mod_version.so
</IfModule>
<IfVersion < 2.4>
LoadModule pagespeed_module modules/mod_pagespeed.so
</IfVersion>
<IfVersion >= 2.4.2>
<IfModule !access_compat_module>
LoadModule access_compat_module modules/mod_access_compat.so
</IfModule>
LoadModule pagespeed_module modules/mod_pagespeed_ap24.so
</IfVersion>
<IfModule !mod_deflate.c>
LoadModule deflate_module modules/mod_deflate.so
</IfModule>
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedInheritVHostConfig on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath "/var/cache/mod_pagespeed/"
ModPagespeedLogDir "/var/log/pagespeed"
ModPagespeedSslCertDirectory "/etc/pki/tls/certs"
ModPagespeedSslCertFile /etc/pki/tls/cert.pem
# ModPagespeedMemcachedThreads 1
# ModPagespeedMemcachedServers localhost:11211
ModPagespeedEnableFilters elide_attributes
ModPagespeedEnableFilters convert_gif_to_png,recompress_png,convert_png_to_jpeg,convert_jpeg_to_progressive,recompress_jpeg
ModPagespeedEnableFilters convert_jpeg_to_webp,convert_to_webp_lossless,convert_to_webp_animated,recompress_webp
ModPagespeedEnableFilters extend_cache,combine_css,combine_javascript,collapse_whitespace,move_css_to_head,defer_javascript
ModPagespeedEnableFilters rewrite_images,lazyload_images
ModPagespeedDisableFilters rewrite_css,rewrite_javascript,defer_javascript,fallback_rewrite_css_urls
ModPagespeedEnableFilters make_show_ads_async,make_google_analytics_asyn
ModPagespeedDisallow "*/wp-content/plugins/akismet/*"
ModPagespeedRateLimitBackgroundFetches off
ModPagespeedJpegRecompressionQuality -1
ModPagespeedDisableRewriteOnNoTransform off
ModPagespeedFetchHttps enable
ModPagespeedCreateSharedMemoryMetadataCache "/var/cache/mod_pagespeed/" 51200
ModPagespeedRewriteLevel PassThrough
ModPagespeedFileCacheSizeKb 512000
ModPagespeedFileCacheInodeLimit 500000
ModPagespeedStatisticsLogging on
ModPagespeedMessageBufferSize 100000
<Location /pagespeed_admin>
Require local
Require ip 127.0.0.1
SetHandler pagespeed_admin
</Location>
<Location /pagespeed_global_admin>
Require local
Require ip 127.0.0.1
SetHandler pagespeed_global_admin
</Location>
</IfModule>