Created
August 12, 2016 19:55
-
-
Save molotovbliss/d089f9f1fa3213f477f4bb912a17b0c6 to your computer and use it in GitHub Desktop.
mod_pagespeed.conf for Magento 1.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_pagespeed> | |
# General Configuration | |
ModPagespeed on | |
ModPagespeedDomain *.domain.com | |
ModPagespeedDomain images.domain.com | |
ModPagespeedDomain assets.domain.com | |
ModPagespeedStatistics on | |
ModPagespeedStatisticsLogging on | |
ModPagespeedLogDir /home/domain.com/public_html/var/pagespeed | |
ModPagespeedRewriteLevel CoreFilters | |
# May be bad to run in parallel with sessions (seperate instance?) | |
ModPagespeedMemcachedServers "tcp://127.0.0.1:11220" | |
# define path to cache if memcache isn't enabled | |
ModPagespeedFileCachePath "/home/domain.com/public_html/var/cache/pagespeed/" | |
ModPagespeedFileCacheSizeKb 102400 | |
ModPagespeedFileCacheCleanIntervalMs 3600000 | |
ModPagespeedFileCacheInodeLimit 500000 | |
# touch file cache path cache.flush to global purge/flush cache | |
ModPagespeedEnableCachePurge off | |
# Filters to Disable | |
ModPagespeedDisableFilters inline_css,inline_javascript | |
# Filters to Enable | |
ModPagespeedEnableFilters move_css_to_head | |
ModPagespeedEnableFilters rewrite_css | |
ModPagespeedEnableFilters rewrite_javascript | |
ModPagespeedEnableFilters outline_css | |
ModPagespeedEnableFilters outline_javascript | |
ModPagespeedEnableFilters collapse_whitespace | |
ModPagespeedEnableFilters extend_cache | |
ModPagespeedEnableFilters defer_javascript | |
ModPagespeedEnableFilters insert_dns_prefetch | |
ModPagespeedEnableFilters lazyload_images | |
ModPagespeedEnableFilters make_google_analytics_async | |
ModPagespeedEnableFilters canonicalize_javascript_libraries | |
#ModPagespeedEnableFilters remove_comments | |
# New Filters to try | |
ModPagespeedEnableFilters move_css_above_scripts | |
ModPagespeedEnableFilters combine_css | |
ModPagespeedEnableFilters combine_javascript | |
ModPagespeedEnableFilters MaxCombinedJsBytes 300000 | |
ModPagespeedEnableFilters CombineAcrossPaths on | |
ModPagespeedEnableFilters insert_image_dimensions | |
# CDN Mapping to local domains | |
ModPagespeedMapOriginDomain ee.domain.com images.domain.com assets.domain.com | |
ModPagespeedMapRewriteDomain images.domain.com assets.domain.com | |
# Page Speed Admin access | |
<Location /pagespeed_admin> | |
Order allow,deny | |
Allow from localhost | |
Allow from 127.0.0.1 | |
#Allow from any | |
SetHandler pagespeed_admin | |
</Location> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment