Lofesa commented on issue #1720:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1720#issuecomment-738637334


   You need to add some "logic" to your fastcgi cache to clean the cache when 
you modify/add a post/page to the wordpress.
   I still viewing the 2 downloads because the page still in the fastcgi cache 
(nginx-cache: HIT header).
   Maybe need to use the nginx helper plugin for wordpress.
   About config files:
   pagespeed.conf
   1.- Sugestion. Add these 2 lines below the LoadFromFile.
   
   ```
   pagespeed LoadFromFileRuleMatch disallow .*;
   pagespeed LoadFromFileRuleMatch allow 
\.(js|css|jpg|jpeg|png|pdf|gif)(\?.*)?$ps_dollar;
   ```
   In the second line add the file extension you need.
   
   filters.conf
   2.- You have  directives that are contradictory:
   lines 16 - 17 You are inlining js files and outlne js snipents.
   lines 31 - 32. You are inlining css files and outline (make it download as a 
file) the inlined css
   
   main.conf
   3.- Why do you need these 2 lines:
         5 `pagespeed Disallow */?*ajax=*;`
         6 `pagespeed Disallow */*ajax*;`
   Line 6 cover the line 5.
   
   4.-Lines 10,11,12. Change these lines with
   `pagespeed Disallow */*.php*;`
   
   5.- 38 `pagespeed CriticalImagesBeaconEnabled false;` Change this to true. 
Some filters works better with beacons enabled.
   
   6.- 47 `pagespeed CssInlineMaxBytes 4096; `and  49 `pagespeed 
JsInlineMaxBytes 4096;` Maybe you need a great size here.
   
   7.- 50 `pagespeed ImageInlineMaxBytes 3072;` You have disabled (commented in 
filters.conf) the inline_images filter, so no need this or this 51 `pagespeed 
MaxInlinedPreviewImagesIndex 6;`
   
   8.- You don´t have a downstream cache configured so don´t need this:
    86 `pagespeed DownstreamCacheRewrittenPercentageThreshold 80;`
   
   
   About inline things:  When you will inline things, img,css or js files, you 
need to set sizes that cover these files you will inlined. For example, if all 
your css files are greater than 4kb but you have set a max size to inline for 
3kb, none of yours css files got inlined so why do you need these filters 
working?
   
   About inlining css and prioritize_critical_css: If you use prioritize 
filter, this works inlining critical css and all other (non critical) css is 
downloaded latter, but if you inline it....
   
   In this url `/pagespeed_global_admin/cache#physical_cache` you can see the 
redis stats. Look for a line with `evicted_keys:` if this value is high, you 
need more space for the pagespeed cache aka the maxmemory redis parameter need 
to be greater.
   
   
   


----------------------------------------------------------------
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