Welcome to Centmin Mod Community
Become a Member

WebPerf PageSpeed What is your Pagespeed Configuration?

Discussion in 'Web Development & Web Performance' started by BamaStangGuy, Jan 15, 2020.

  1. BamaStangGuy

    BamaStangGuy Active Member

    631
    183
    43
    May 25, 2014
    Ratings:
    +253
    Local Time:
    7:43 AM
    I use the following on my Wordpress site as it is the only site on the server.

    Code:
    pagespeed on;
    pagespeed RewriteLevel CoreFilters;
    pagespeed Domain http*://*.bamapolitics.com;
    
    pagespeed Disallow "*/wp-admin/*";
    pagespeed Disallow "*/wp-login.php*";
    pagespeed Disallow "*/wp-json/*";
    pagespeed Disallow "*/feed/";
    pagespeed EnableCachePurge on;
    pagespeed PurgeMethod PURGE;
    
    pagespeed FileCacheSizeKb            1024000;
    pagespeed FileCacheCleanIntervalMs -1;
    
    pagespeed LRUCacheKbPerProcess     8192;
    pagespeed LRUCacheByteLimit        16384;
    
    pagespeed MemcachedThreads 1;
    pagespeed MemcachedServers "localhost:11211";
    pagespeed MemcachedTimeoutUs 100000;
    
    pagespeed JpegQualityForSaveData 50;
    pagespeed WebpQualityForSaveData 50;
    pagespeed WebpRecompressionQuality 75;
    
    pagespeed PreserveUrlRelativity on;
    pagespeed ImageResolutionLimitBytes 16777216;
    
    pagespeed AvoidRenamingIntrospectiveJavascript on;
    pagespeed ImageInlineMaxBytes 3072;
    pagespeed MaxInlinedPreviewImagesIndex -1;
    pagespeed MinImageSizeLowResolutionBytes 3072;
    
    pagespeed ForbidAllDisabledFilters true;
    
    pagespeed FetchHttps enable;
    
    pagespeed SslCertDirectory /etc/pki/tls/certs;
    pagespeed SslCertFile /etc/pki/tls/cert.pem;
    
    pagespeed MaxCombinedCssBytes -1;
    pagespeed HttpCacheCompressionLevel 9;
    
    pagespeed EnableFilters resize_rendered_image_dimensions;
    pagespeed EnableFilters inline_google_font_css;
    pagespeed EnableFilters collapse_whitespace;
    pagespeed EnableFilters remove_comments;
    pagespeed EnableFilters lazyload_images;
    pagespeed EnableFilters insert_dns_prefetch;
    pagespeed EnableFilters defer_javascript;
    pagespeed EnableFilters extend_cache_pdfs;
    pagespeed EnableFilters elide_attributes;
    pagespeed EnableFilters trim_urls;
    pagespeed EnableFilters responsive_images;
    Code:
    pagespeed on;
    
    pagespeed UsePerVhostStatistics on;
    
    pagespeed FileCachePath /var/ngx_pagespeed_cache;
    pagespeed StatisticsPath /ngx_pagespeed_statistics;
    pagespeed GlobalStatisticsPath /ngx_pagespeed_global_statistics;
    pagespeed MessagesPath /ngx_pagespeed_message;
    pagespeed ConsolePath /pagespeed_console;
    pagespeed AdminPath /pagespeed_admin;
    pagespeed GlobalAdminPath /pagespeed_global_admin;
    
    pagespeed MessageBufferSize 100000;
    
    pagespeed ImageMaxRewritesAtOnce 0;

     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    42,833
    9,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,970
    Local Time:
    11:43 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. BamaStangGuy

    BamaStangGuy Active Member

    631
    183
    43
    May 25, 2014
    Ratings:
    +253
    Local Time:
    7:43 AM
    I've noticed that Pagespeed does a much better job on deferring javascript and optimizing images than CloudFlare does. At least on the Pro plan.
     
  4. eva2000

    eva2000 Administrator Staff Member

    42,833
    9,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,970
    Local Time:
    11:43 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah depends on the style/theme of your site. Cloudflare Rocket Loader is the equivalent otherwise CF won't deal with javascript deferring etc.
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    843
    172
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +314
    Local Time:
    10:43 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Well, get the best of both. Select what you need because your christian site will get more Edge points with a simple plan of US 20,00. Disable in Cloudflare what Pagespeed does better. I see the same result here in Brazil, Free Cloudflare is router to Miami, US$ 20,00 to São Paulo Brazil.

    But I don't use PageSpeed with CloudFlare as it is much work setup for each site. Configure and fine tune it. My hourly earnings are more that US20,00 so I'm happy with Cloudflare. Some sites I even have together with another paid CDN (KEYCDN) to get even better results.
     
    Last edited: Jan 19, 2020