utags opened a new issue #1991:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1991


   I use a responsive theme and use a LEMP stack and use the WordPress 
platform. 
   
   When I test the site performance using the pagespeed insights, I can achieve 
81% score for the desktop site but mobile site score less than 30%.
   
   Below you can find my configuration file. My I know which filters improve 
the mobile site performance?
   
   `pagespeed                                     on;
   
   
   #add header
   pagespeed XHeaderValue "Powered By ngx_pagespeed";
   
   location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
         add_header " " " ";
           }
   
   location ~ "^/pagespeed_static/" { }
   location ~ "^/ngx_pagespeed_beacon$" { }
        
        
   #Disable PageSpeed Core Filters and enabale one by one.
   pagespeed RewriteLevel                        PassThrough;
   
   pagespeed FileCachePath                        
/var/cache/ngx_pagespeed_cache;
   
   pagespeed AllowVaryOn                                                  
"Auto";
   
   #Cause Render Blocking CSS
   #pagespeed EnableFilters                                       
hint_preload_subresources;
   
   pagespeed UseExperimentalJsMinifier           on;
   
   #Sizes
   pagespeed JsOutlineMinBytes                            3000;
   pagespeed MaxCombinedCssBytes                 -1;
   pagespeed MaxCombinedJsBytes                  -1;
   
   pagespeed CssInlineMaxBytes                   28000;
   #pagespeed JsInlineMaxBytes                    16096;
   
   pagespeed LazyloadImagesAfterOnload           on;
   
   pagespeed RewriteDeadlinePerFlushMs           2000;
   pagespeed MaxCacheableContentLength           2048000;
   
   pagespeed FetchHttps                          enable,allow_self_signed;
   
   # Implicit cache-lifetime for resources
   pagespeed ImplicitCacheTtlMs                  3600000;
   
   # In-memory LRU Cache
   pagespeed LRUCacheKbPerProcess                16192;
   pagespeed LRUCacheByteLimit                   64384;
   
   pagespeed EnableCachePurge                    on;
   pagespeed PurgeMethod                         PURGE;
   
   pagespeed LoadFromFileRuleMatch               disallow .*;
   pagespeed LoadFromFileRuleMatch               allow \.css$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.jpe?g$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.png$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.gif$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.js$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.ico$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.svg$ps_dollar;
   pagespeed LoadFromFileRuleMatch               allow \.php$ps_dollar;
   
   #pagespeed Disallow                            */js/buzz.js*;
   #pagespeed Disallow                            */lost-password/lost;
   #pagespeed Disallow                            */lost-password/*;
   pagespeed Disallow                            */cron.php*;
   pagespeed Disallow                            */admin.php*;
   
   pagespeed DownstreamCacheRebeaconingKey       "{{PAGESPEED_BEACON}}";
   
   pagespeed RespectVary                         on;
   pagespeed RespectXForwardedProto              on;
   
   pagespeed LowercaseHtmlNames                  on;
   
   #JavaScript Optimization.
   pagespeed EnableFilters                       
rewrite_javascript,outline_javascript,combine_javascript,extend_cache,local_storage_cache,canonicalize_javascript_libraries,defer_javascript;
   
   #Other Optimization.
   pagespeed EnableFilters                       insert_dns_prefetch,add_head;
   pagespeed RetainComment                                        " 
google_ad_section*";
   pagespeed EnableFilters                                        trim_urls;
   
   #3rd Party script Optimization.
   pagespeed EnableFilters                       inline_google_font_css;
   pagespeed EnableFilters                                        
make_show_ads_async;
   pagespeed EnableFilters                                        
make_google_analytics_async;
   
   #HTML Optimization.
   pagespeed EnableFilters                       
elide_attributes,remove_comments,combine_heads,collapse_whitespace;
   
   #CSS Optimization.
   pagespeed EnableFilters                       
prioritize_critical_css,rewrite_css,combine_css,fallback_rewrite_css_urls,flatten_css_imports,inline_css,inline_import_to_link,rewrite_style_attributes_with_url,move_css_above_scripts,move_css_to_head;
   pagespeed PermitIdsForCssCombining            *-css;
   
   #Image Optimization.
   pagespeed EnableFilters                       
inline_preview_images,resize_rendered_image_dimensions,insert_image_dimensions,responsive_images,lazyload_images,dedup_inlined_images,inline_images,rewrite_images,recompress_images,rewrite_css,sprite_images;
   
   #Mobile Optimization.
   pagespeed EnableFilters                                                
resize_mobile_images;
   
   #Browser Optimization
   pagespeed EnableFilters                            convert_meta_tags;        
                                  
   
   # redis storage backend
   #pagespeed RedisServer "{{REDIS_UPSTREAM}}";
   #pagespeed RedisTimeoutUs 1000;
   
   
   #Combine CSS wildcard.
   pagespeed PermitIdsForCssCombining                     font*;
   pagespeed MinImageSizeLowResolutionBytes      10;
   
   #Extend Cache
   pagespeed EnableFilters extend_cache;
   
   #Fix PageSpeed remove comment AMP validation error.
   pagespeed RetainComment "AMP_VALIDATION:*";
   
   #Disable meta refresh.
   pagespeed SupportNoScriptEnabled false;`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to