Want more timely Centmin Mod News Updates?
Become a Member

Nginx PageSpeed My PageSpeed Setup and Results - Anything Evil?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by anthony parsons, Jul 12, 2018.

  1. anthony parsons

    anthony parsons Premium Member Premium Member

    77
    18
    8
    Feb 12, 2017
    Ratings:
    +22
    Local Time:
    2:07 PM
    Current yum stable
    10.1
    Anything evil / lacking that I'm missing? Just a Wordpress blog...

    /usr/local/nginx/conf/pagespeed.conf

    Code:
    pagespeed on;
    
    #######################################################
    # Purge nginx pagespeed cache
    # https://developers.google.com/speed/pagespeed/module/system#flush_cache
    #######################################################
    pagespeed EnableCachePurge on;
    pagespeed PurgeMethod PURGE;
    
    #######################################################
    # File cache settings 
    ######################################
    # needs to exist and be writable by nginx
    
    # pagespeed FileCacheSizeKb          102400;
    # pagespeed FileCacheCleanIntervalMs 3600000;
    # pagespeed FileCacheInodeLimit      500000;
    
    #######################################################
    # By default, ngx_pagespeed adds an X-PageSpeed header with a value of the version of 
    # ngx_pagespeed being used. This directive lets you specify the value to use instead:
    # pagespeed XHeaderValue "ngx_pagespeed";
    
    #######################################################
    # let's speed up PageSpeed by storing it in the super duper fast memcached
    # Ensure Memcached server installed http://centminmod.com/memcached.html
    # default install for centmin mod is on port 11211, so localhost:11211 is correct
    # uncomment - remove hash # in front of below 2 lines to enable
    # timeout set at 100 milliseconds
    #  pagespeed MemcachedThreads 1;
    #  pagespeed MemcachedServers "localhost:11211";
    #  pagespeed MemcachedTimeoutUs 100000;
    
    #######################################################
    ## 1.11.33.0 beta save-data
    ######################################
    # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#image-quality
    
    # https://developers.google.com/speed/pagespeed/module/reference-image-optimize#JpegQualityForSaveData
    pagespeed JpegQualityForSaveData 50;
    
    # https://developers.google.com/speed/pagespeed/module/reference-image-optimize#WebpQualityForSaveData
    pagespeed WebpQualityForSaveData 50;
    
    # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#resize_rendered_image_dimensions
    pagespeed EnableFilters resize_rendered_image_dimensions;
    
    # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#WebpRecompressionQuality
    pagespeed WebpRecompressionQuality 75;
    
    #######################################################
    ## 1.7.30.1 beta defaults
    ######################################
    pagespeed PreserveUrlRelativity on;
    pagespeed MaxCombinedCssBytes -1;
    pagespeed ImageResolutionLimitBytes 16777216;
    pagespeed EnableFilters inline_google_font_css;
    
    #######################################################
    ## 1.6.29.3 beta defaults
    ######################################
    pagespeed AvoidRenamingIntrospectiveJavascript on;
    pagespeed ImageInlineMaxBytes 3072;
    pagespeed CssImageInlineMaxBytes 0;
    pagespeed MaxInlinedPreviewImagesIndex -1;
    pagespeed MinImageSizeLowResolutionBytes 3072;
    
    #######################################################
    ## ngx_pagespeed filters settings below ##
    ######################################
    
      # show half the users an optimized site, half the regular site
      # change UA-XXXXXXXXXX-1 to your GA unique id
      # uncomment - remove hash # in front of below 5 lines to enable
    #  pagespeed RunExperiment on;
    #  pagespeed AnalyticsID UA-XXXXXXXXXX-1;
    #  pagespeed ExperimentVariable 1;
    #  pagespeed ExperimentSpec "id=1;percent=50;level=CoreFilters;enabled=collapse_whitespace,remove_comments;";
    #  pagespeed ExperimentSpec "id=2;percent=50";
    
      # Filter settings
      # filters outlined at http://ngxpagespeed.com/ngx_pagespeed_example/
      pagespeed RewriteLevel CoreFilters;
      pagespeed EnableFilters collapse_whitespace,remove_comments;
    
      # https://www.modpagespeed.com/doc/config_filters#FinderPropertiesCacheExpirationTimeMs
    #  pagespeed FinderPropertiesCacheExpirationTimeMs 7200000;  
    
      # https://www.modpagespeed.com/doc/config_filters#forbidding
       pagespeed ForbidAllDisabledFilters true;
    
      # https://developers.google.com/speed/pagespeed/module/filter-attribute-elide
    #  pagespeed EnableFilters elide_attributes;
    
      # https://developers.google.com/speed/pagespeed/module/filter-dedup-inlined-images
    #  pagespeed EnableFilters dedup_inlined_images;
    
      # make_google_analytics_async
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-make-google-analytics-async
    #  pagespeed EnableFilters make_google_analytics_async;
    
      # make_show_ads_async
      # https://developers.google.com/speed/pagespeed/module/filter-make-show-ads-async
    #  pagespeed EnableFilters make_show_ads_async;
    
      # responsive_images, responsive_images_zoom
      # https://developers.google.com/speed/pagespeed/module/filter-image-responsive
    #  pagespeed EnableFilters responsive_images;
    #  pagespeed EnableFilters responsive_images_zoom;
    
      # convert_to_webp_animated
      # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#convert_to_webp_animated
    #  pagespeed EnableFilters convert_to_webp_animated;
    
      # inline_google_font_css
      # https://developers.google.com/speed/pagespeed/module/filter-css-inline-google-fonts
      pagespeed EnableFilters inline_google_font_css;
    
      # require FetchHttps if using https site
    #   pagespeed FetchHttps enable;
    
      # https://www.modpagespeed.com/doc/https_support
        pagespeed SslCertDirectory /etc/pki/tls/certs;
        pagespeed SslCertFile /etc/pki/tls/cert.pem;
    
      # inline_css
      # https://developers.google.com/speed/pagespeed/module/filter-css-inline
    #   pagespeed EnableFilters inline_css;
    #   pagespeed CssInlineMaxBytes 2048;
    
      # prioritize_critical_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-prioritize-critical-css
      pagespeed EnableFilters prioritize_critical_css;
    
      # move_css_to_head
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-to-head
      pagespeed EnableFilters move_css_to_head;
    
      # move_css_above_scripts
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-above-scripts
    #  pagespeed EnableFilters move_css_above_scripts;
    
      # combine_css 
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-combine
    #  pagespeed EnableFilters combine_css;
    
       # Uncomment this if you want to prevent mod_pagespeed from combining files
       # (e.g. CSS files) across paths
       #
    #  pagespeed CombineAcrossPaths off;
    
      # combine_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-combine
    #  pagespeed EnableFilters combine_javascript;
    #  pagespeed MaxCombinedJsBytes 122900;
    
      # extend_cache
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-cache-extend
    #  pagespeed EnableFilters extend_cache;
    
      # rewrite_css
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-rewrite
    #  pagespeed EnableFilters rewrite_css;
    
      # rewrite_javascript
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-minify
    #  pagespeed EnableFilters rewrite_javascript;
    
      # inline_preview_images
      # https://developers.google.com/speed/pagespeed/module/filter-inline-preview-images
      pagespeed EnableFilters inline_preview_images;
    
      # lazyload_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-lazyload-images
      pagespeed EnableFilters lazyload_images;
      pagespeed LazyloadImagesAfterOnload off;
    
      # rewrite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-optimize
       pagespeed EnableFilters rewrite_images;
    #   pagespeed DisableFilters rewrite_images;
    #   pagespeed DisableFilters recompress_images;
    #   pagespeed DisableFilters convert_png_to_jpeg;
    #   pagespeed DisableFilters extend_cache_images;
      pagespeed EnableFilters convert_png_to_jpeg;
      pagespeed EnableFilters convert_jpeg_to_webp;
      pagespeed EnableFilters convert_to_webp_lossless;
    
      # sprite_images
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-sprite
    # pagespeed EnableFilters rewrite_css,sprite_images;
    
      # insert_dns_prefetch
      # https://developers.google.com/speed/docs/mod_pagespeed/filter-insert-dns-prefetch
    #  pagespeed EnableFilters insert_dns_prefetch;
    
      # InPlaceResourceOptimization
      # https://developers.google.com/speed/pagespeed/module/system#ipro
      # Enabled by default as of 1.9.32.1
      pagespeed InPlaceResourceOptimization off;
    
    #######################################################
    
    
    Code:
    active_expensive_operations 0 0
    cache_backend_hits 85 1
    cache_backend_misses 14 1
    cache_batcher_coalesced_gets 0 0
    cache_batcher_dropped_gets 0 0
    cache_batcher_queued_gets 0 0
    cache_deletes 0 0
    cache_expirations 0 0
    cache_extensions 61 1
    cache_fallbacks 0 0
    cache_flush_count 0 0
    cache_flush_timestamp_ms 0 0
    cache_hits 85 1
    cache_inserts 25 1
    cache_misses 14 1
    cache_time_us 117202 1
    central_controller_reconnect_time_ms 0 0
    child_shutdown_count 0 0
    compressed_cache_compressed_size 193649 1
    compressed_cache_corrupt_payloads 0 0
    compressed_cache_original_size 763894 1
    converted_meta_tags 11 1
    critical_css_beacon_filter_script_added_count 1 1
    critical_css_no_beacon_due_to_missing_data 0 0
    critical_css_skipped_due_to_charset 0 0
    critical_images_beacon_filter_script_added_count 5 1
    critical_images_expired_count 1 1
    critical_images_not_found_count 4 1
    critical_images_valid_count 6 1
    critical_selectors_expired_count 0 0
    critical_selectors_not_found_count 6 1
    critical_selectors_valid_count 0 0
    css_combine_opportunities 42 1
    css_elements_moved 0 0
    css_file_count_reduction 0 0
    css_filter_blocks_rewritten 18 1
    css_filter_fallback_failures 0 0
    css_filter_fallback_rewrites 0 0
    css_filter_parse_failures 0 0
    css_filter_rewrites_dropped 4 1
    css_filter_total_bytes_saved 96048 1
    css_filter_total_original_bytes 939099 1
    css_filter_uses 32 1
    css_imports_to_links 0 0
    current_expensive_operations 0 0
    current_fetch_queue_size 0 0
    domain_rewrites 0 0
    downstream_cache_purge_attempts 0 0
    dropped_fetch_count 0 0
    file_cache_bytes_freed_in_cleanup 0 0
    file_cache_cleanups 0 0
    file_cache_deletes 0 0
    file_cache_disk_checks 0 0
    file_cache_evictions 0 0
    file_cache_hits 85 1
    file_cache_inserts 26 1
    file_cache_misses 14 1
    file_cache_skipped_cleanups 0 0
    file_cache_started_cleanups 0 0
    file_cache_write_errors 0 0
    flatten_imports_charset_mismatch 0 0
    flatten_imports_complex_queries 0 0
    flatten_imports_invalid_url 0 0
    flatten_imports_limit_exceeded 0 0
    flatten_imports_minify_failed 0 0
    flatten_imports_recursion 0 0
    font_service_input_resource_hit 1 1
    font_service_input_resource_miss 0 0
    font_service_input_resource_recent_fetch_failure 0 0
    font_service_input_resource_recent_uncacheable_failure 0 0
    font_service_input_resource_recent_uncacheable_miss 0 0
    google_analytics_page_load_count 0 0
    google_analytics_rewritten_count 0 0
    html_worker_queue_depth 0 0
    http_approx_header_bytes_fetched 0 0
    http_bytes_fetched 0 0
    http_fetches 0 0
    image_file_count_reduction 0 0
    image_inline 0 0
    image_norewrites_high_resolution 0 0
    image_ongoing_rewrites 0 0
    image_resized_using_rendered_dimensions 2 1
    image_rewrite_latency_total_ms 19520 1
    image_rewrite_total_bytes_saved 82364 1
    image_rewrite_total_original_bytes 376411 1
    image_rewrite_uses 42 1
    image_rewrites 9 1
    image_rewrites_dropped_decode_failure 0 0
    image_rewrites_dropped_due_to_load 21 1
    image_rewrites_dropped_intentionally 21 1
    image_rewrites_dropped_mime_type_unknown 0 0
    image_rewrites_dropped_nosaving_noresize 20 1
    image_rewrites_dropped_nosaving_resize 1 1
    image_rewrites_dropped_server_write_fail 0 0
    image_rewrites_squashing_for_mobile_screen 0 0
    image_webp_alpha_timeouts 0 0
    image_webp_conversion_gif_animated_timeouts 0 0
    image_webp_conversion_gif_timeouts 0 0
    image_webp_conversion_jpeg_timeouts 0 0
    image_webp_conversion_png_timeouts 0 0
    image_webp_opaque_timeouts 0 0
    image_webp_rewrites 0 0
    in_place_oversized_opt_stream 0 0
    in_place_uncacheable_rewrites 0 0
    inserted_ga_snippets 0 0
    instrumentation_filter_script_added_count 0 0
    ipro_not_in_cache 14 1
    ipro_not_rewritable 0 0
    ipro_recorder_dropped_due_to_load 0 0
    ipro_recorder_dropped_due_to_size 0 0
    ipro_recorder_failed 14 1
    ipro_recorder_inserted_into_cache 0 0
    ipro_recorder_not_cacheable 0 0
    ipro_recorder_resources 14 1
    ipro_served 0 0
    javascript_blocks_minified 59 1
    javascript_did_not_shrink 9 1
    javascript_failed_to_write 0 0
    javascript_libraries_identified 0 0
    javascript_minification_disabled 0 0
    javascript_minification_failures 0 0
    javascript_minify_uses 49 1
    javascript_reducing_minifications 47 1
    javascript_total_bytes_saved 91045 1
    javascript_total_original_bytes 640537 1
    js_file_count_reduction 22 1
    low_priority_worked_queue_depth 0 0
    lru_cache_deletes 0 0
    lru_cache_hits 0 0
    lru_cache_inserts 0 0
    lru_cache_misses 0 0
    memcache_error_burst_size 0 0
    memcache_last_error_checkpoint_ms 0 0
    memcache_timeouts 0 0
    memcached_async_deletes 0 0
    memcached_async_hits 0 0
    memcached_async_inserts 0 0
    memcached_async_misses 0 0
    memcached_blocking_deletes 0 0
    memcached_blocking_hits 0 0
    memcached_blocking_inserts 0 0
    memcached_blocking_misses 0 0
    named_lock_rewrite_scheduler_denied 0 0
    named_lock_rewrite_scheduler_granted 67 1
    named_lock_rewrite_scheduler_locks_held 0 0
    named_lock_rewrite_scheduler_released_not_held 0 0
    named_lock_rewrite_scheduler_stolen 0 0
    not_cacheable 0 0
    num_cache_control_not_rewritable_resources 0 0
    num_cache_control_rewritable_resources 174 1
    num_conditional_refreshes 0 0
    num_css_inlined 4 1
    num_css_not_used_for_critical_css_computation 1 1
    num_css_used_for_critical_css_computation 9 1
    num_deadline_alarm_invocations 0 0
    num_dedup_inlined_images_candidates_found 0 0
    num_dedup_inlined_images_candidates_replaced 0 0
    num_fallback_responses_served 0 0
    num_fallback_responses_served_while_revalidate 0 0
    num_flushes 11 1
    num_js_inlined 2 1
    num_local_storage_cache_candidates_added 0 0
    num_local_storage_cache_candidates_found 0 0
    num_local_storage_cache_candidates_removed 0 0
    num_local_storage_cache_stored_css 0 0
    num_local_storage_cache_stored_images 0 0
    num_local_storage_cache_stored_total 0 0
    num_proactively_freshen_user_facing_request 0 0
    num_resource_fetch_failures 0 0
    num_resource_fetch_successes 0 0
    num_rewrites_abandoned_for_lock_contention 0 0
    num_rewrites_dropped 0 0
    num_rewrites_executed 179 1
    page_load_count 0 0
    pcache_cohorts_beacon_cohort_deletes 0 0
    pcache_cohorts_beacon_cohort_hits 13 1
    pcache_cohorts_beacon_cohort_inserts 17 1
    pcache_cohorts_beacon_cohort_misses 4 1
    pcache_cohorts_dependencies_cohort_deletes 0 0
    pcache_cohorts_dependencies_cohort_hits 0 0
    pcache_cohorts_dependencies_cohort_inserts 0 0
    pcache_cohorts_dependencies_cohort_misses 0 0
    pcache_cohorts_dom_deletes 0 0
    pcache_cohorts_dom_hits 0 0
    pcache_cohorts_dom_inserts 0 0
    pcache_cohorts_dom_misses 11 1
    permitted_expensive_operations 0 0
    popularity_contest_num_rewrites_awaiting_retry 0 0
    popularity_contest_num_rewrites_failed 0 0
    popularity_contest_num_rewrites_rejected_already_running 0 0
    popularity_contest_num_rewrites_rejected_queue_full 0 0
    popularity_contest_num_rewrites_requested 0 0
    popularity_contest_num_rewrites_running 0 0
    popularity_contest_num_rewrites_succeeded 0 0
    popularity_contest_queue_size 0 0
    purge_cancellations 0 0
    purge_contentions 0 0
    purge_file_parse_failures 0 0
    purge_file_stats 8 1
    purge_file_write_failures 0 0
    purge_file_writes 0 0
    purge_index 0 0
    purge_poll_timestamp_ms 1531352915986 1
    queued_expensive_operations 0 0
    queued_fetch_count 0 0
    redis_async_deletes 0 0
    redis_async_hits 0 0
    redis_async_inserts 0 0
    redis_async_misses 0 0
    redis_blocking_deletes 0 0
    redis_blocking_hits 0 0
    redis_blocking_inserts 0 0
    redis_blocking_misses 0 0
    redis_cluster_redirections 0 0
    redis_cluster_slots_fetches 0 0
    resource_404_count 0 0
    resource_fetch_construct_failures 0 0
    resource_fetch_construct_successes 0 0
    resource_fetches_cached 1 1
    resource_url_domain_acceptances 642 1
    resource_url_domain_rejections 75 1
    rewrite_cached_output_hits 360 1
    rewrite_cached_output_missed_deadline 218 1
    rewrite_cached_output_misses 186 1
    rewrite_worker_queue_depth 0 0
    serf_fetch_active_count 0 0
    serf_fetch_bytes_count 0 0
    serf_fetch_cancel_count 0 0
    serf_fetch_cert_errors 0 0
    serf_fetch_failure_count 0 0
    serf_fetch_last_check_timestamp_ms 0 0
    serf_fetch_request_count 0 0
    serf_fetch_time_duration_ms 0 0
    serf_fetch_timeout_count 0 0
    serf_fetch_ultimate_failure 0 0
    serf_fetch_ultimate_success 0 0
    shm_cache_deletes 0 0
    shm_cache_hits 296 1
    shm_cache_inserts 176 1
    shm_cache_misses 211 1
    show_ads_api_replaced_for_async 0 0
    show_ads_snippets_converted 0 0
    show_ads_snippets_not_converte 0 0
    slurp_404_count 0 0
    statistics_404_count 0 0
    stdio_fs_outstanding_ops 0 0
    stdio_fs_slow_ops 0 0
    stdio_fs_total_ops 295 1
    successful_downstream_cache_purges 0 0
    total_fetch_count 1 1
    total_page_load_ms 0 0
    total_rewrite_count 11 1
    url_input_resource_hit 83 1
    url_input_resource_miss 0 0
    url_input_resource_recent_fetch_failure 0 0
    url_input_resource_recent_uncacheable_failure 0 0
    url_input_resource_recent_uncacheable_miss 0 0
    url_trim_saved_bytes 0 0
    url_trims 0 0
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,864
    8,069
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,427
    Local Time:
    1:07 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Pagespeed needs time to learn your pages make up of elements so depending on your traffic this will take time i.e. more traffic = faster pagespeed learns versus little traffic = longer it takes for pagespeed to learn. So give it a few days of stats gathering
     
..