Page 1 of 1
what is the best configuration to install mod_pagespped
Posted: Wed Nov 25, 2015 2:12 am
by pradeepsharma
Hi
i am newbi here
can some1 help me in choosing best settings for my Requirment.
I need to speedup my website..
what configuation should i choose.
on what configuration mod_pagespeed is supported. nginx or acache..
and how to install it
i installed mod_pagespeed but its not refelecting any changes...
moreover my .htaccess file dont reflect any changes..
please help
Re: what is the best configuration to install mod_pagespped
Posted: Tue Dec 01, 2015 12:28 am
by rnbmafia
Thats my full pagespeed conf
Its OFF by default for all domains , and if i need to use it i just type inside configs for the domain i want it to work with .
Im not sure everything is perfect , someone else can give you a better solution :)
Code: Select all
# Turning the module on and off
pagespeed off;
pagespeed FetchHttps enable;
# Configuring PageSpeed Filters
#pagespeed RewriteLevel PassThrough;
#pagespeed EnableFilters extend_cache;
#pagespeed RewriteLevel OptimizeForBandwidth;
pagespeed EnableFilters extend_cache;
###### Images ############
pagespeed EnableFilters rewrite_images;
pagespeed EnableFilters inline_images;
pagespeed EnableFilters strip_image_meta_data;
pagespeed EnableFilters lazyload_images;
pagespeed EnableFilters recompress_images;
pagespeed EnableFilters resize_mobile_images;
################HTML##################
# Remove comments from HTML
pagespeed EnableFilters remove_comments;
# Remove WHITESPACE from HTML
pagespeed EnableFilters collapse_whitespace;
###############Java################
pagespeed EnableFilters combine_javascript;
#pagespeed EnableFilters inline_javascript;
pagespeed UseExperimentalJsMinifier on;
pagespeed EnableFilters include_js_source_maps;
pagespeed EnableFilters canonicalize_javascript_libraries;
pagespeed EnableFilters rewrite_javascript;
pagespeed EnableFilters defer_javascript;
###############CSS############################
pagespeed EnableFilters combine_css;
pagespeed EnableFilters rewrite_css;
#pagespeed EnableFilters move_css_to_head;
pagespeed EnableFilters prioritize_critical_css;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed MemcachedThreads 1;
pagespeed MemcachedServers "127.0.0.1:11211";
pagespeed FileCachePath /var/ngx_pagespeed_cache;
pagespeed FileCacheSizeKb 102400;
pagespeed FileCacheCleanIntervalMs 7200000;
pagespeed FileCacheInodeLimit 500000;
pagespeed FetchWithGzip on;
gzip on;
gzip_vary on;
# Turn on gzip for all content types that should benefit from it.
gzip_comp_level 9;
gzip_min_length 512;
gzip_buffers 8 64k;
gzip_proxied any;
gzip_disable "msi6"
gzip_types application/ecmascript;
gzip_types application/javascript;
gzip_types application/json;
gzip_types application/pdf;
gzip_types application/postscript;
gzip_types application/x-javascript;
gzip_types image/svg+xml;
gzip_types text/css;
gzip_types text/csv;
# "gzip_types text/html" is assumed.
gzip_types text/javascript;
gzip_types text/plain;
gzip_types text/xml;
gzip_http_version 1.0;
# PageSpeed Cache Purge
pagespeed EnableCachePurge on;
pagespeed PurgeMethod PURGE;