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


   > 2. So I should either inline or outline js / css. What is best in your 
experience?
   
   This need to be tested in each site. Pagespeed comes from the HTTP1.1 epoc, 
here you need as many origin sources as possible, with lees connections as 
posiblle, so need lees files as posible, thus here make sense inline small 
files to avoid connections. HTTP2 changes this behaviour, work better with 1 
source origin and some small files (but what are small files?)
   I, in my sites with http2, don´t inline nothing.
   
   > Also can you explain me a bit the role of ?$ps_dollar
   
   In pagespeed for nginx you can enable processing nginx variables, such as 
$host, $document_root and so... these variables uses $ sing, so for 
diferentiate nginx variables and the $ regex symbol you need to use $ps_dollar 
as $ regex symbol
   
   > [`Fri, 04 Dec 2020 09:21:17 GMT] [Info] [1794288] Inside CSS: 
https://uhl.site/wp-content/uploads/oxygen/css/universal.css?cache=1606492394&ver=5.5.3:
 Image MIME type could not be discovered from reading magic bytes; rewriting 
dropped.`
   
   In these css file you have an image pagespped can´t determine the mime type, 
so is unable to rewrite it.
   
   >`[Fri, 04 Dec 2020 09:20:13 GMT] [Info] [1794288] https://uhl.site/:32: 
https://uhl.site/wp-content/uploads/2020/11/cropped-web-programming-32x32.png: 
Too busy to rewrite image. How can I make sure pagespeed is never too busy? I 
run on a Xeon @4 GHZ with 8 CPUs assigned, 10 GB ram on this test machine and 
all runs on pure NVMs.`
   
   Read 
[this](https://www.modpagespeed.com/doc/reference-image-optimize#ImageMaxRewritesAtOnce)
   
   >`[Fri, 04 Dec 2020 09:21:17 GMT] [Info] [1794286] Unable to insert object 
of size: 72045, cache limit is: 71232 --> a bit confused on where this value is 
set.
   
   This comes from the [shared memory cache
   
](https://github.com/apache/incubator-pagespeed-mod/blob/d8d13e85f8356e361e9faa4091f305202415f0f8/pagespeed/kernel/sharedmem/shared_mem_cache.cc#L446)
 or from LRUcaches. I don´t know how this work, but is all related to the max 
size an object may have in these caches and how the system manages their 
memory. I don´t know if making a bigger shared memory solve this.
   
   >`[Fri, 04 Dec 2020 09:19:03 GMT] [Info] [1794286] Initializing shared 
memory for path: <unplugged>. -- Is this normal?
   `
   No. here you must see the shared memory path, some like 
`/var/cache/pagespeed/`.  Maybe you have included the `pagespeed 
CreateSharedMemoryMetadataCache` in a server block that are "unplugged"?
   The better place to set this is in the http block in nginx config.
   
   >`And last thing in my mind was related to IPRO, should I leave this on or 
off?
   
   IPRO works when pagespeed not. Think, for example, in a carrousel where the 
images are loaded with a javascript snipet, these images can´t be optimized by 
pagespeed, but get some optimizations from IPRO.
   
   `


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