This is my ngx pagespeed config.--the website URL is https://new16.depanache.in/When pagespeed is turned on the TTFB is .042367 seconds but when it is turned off it is .011886Is this normal?
You received this message because you are subscribed to the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ngx-pagespeed-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ngx-pagespeed-discuss/aa8c4d5f-dc9e-48d0-85ea-58fe74111348%40googlegroups.com.
Thanks for the quick reply Joshua.I enabled the debug filter as you said but could not see anything that should make me worried, could you please check it once for more clarity
How are you generating your HTML? It is a static file located in the path mentioned in the config.Also where exactly is /var/ngx_pagespeed_cache? If that's on a network file system then performance will suffer. If it's on a local hard disk it should be fine, but you could consider using an SSD or switching to memcached or redis to improve performance. This is hosted on a $5 DigitalOcean box, the /var/ngx_pagespeed_cache is located on the disk (SSD), I was having the same thought process as you and configured memcached later but no use. Please check my config here - https://new16.depanache.in/pagespeed_admin/cache#physical_cache
To view this discussion on the web visit https://groups.google.com/d/msgid/ngx-pagespeed-discuss/b48a014b-3a4b-4bb9-9d21-0e455cfaf80e%40googlegroups.com.
Yes, you are right. I have disabled both prioritize_critical_css and insert_dns_prefetch and TTFB is much better.The numbers are:1. Both of them disabled - .028398 to .030666 (500 tests)
2. ONLY DNS prefetch disabled - .055700 to .057881 (500 tests)3. ONLY critical CSS disabled - .029216 to .030242 (500 tests)4. PageSpeed off - .019661 to .020378 (500 tests)As I need critical CSS, please suggest me the next steps to fix the problem.
To view this discussion on the web visit https://groups.google.com/d/msgid/ngx-pagespeed-discuss/d1d5f68c-0ec0-4586-9480-722d31c5137b%40googlegroups.com.
Apologies again. I made so many versions that I forgot which one it is turned on or off. Please try this https://mumbai16.depanache.inSetup can be verified here - https://mumbai16.depanache.in/pagespeed_admin/config
This is the config for https://mumbai16.depanache.in/Please let me know which filter do you want me to enable or disable to debug further.
# PageSpeed Config
pagespeed RewriteLevel OptimizeForBandwidth;
#pagespeed LoadFromFile "http://$host" "$document_root";
#pagespeed LoadFromFileRuleMatch Disallow \.php$;
#pagespeed EnableFilters debug;
#pagespeed EnableFilters extend_cache;
## Text / HTML
#pagespeed EnableFilters insert_dns_prefetch;
#pagespeed EnableFilters combine_heads;
#pagespeed EnableFilters collapse_whitespace;
#pagespeed EnableFilters convert_meta_tags;
#pagespeed EnableFilters elide_attributes;
#pagespeed EnableFilters pedantic;
#pagespeed EnableFilters remove_comments;
#pagespeed EnableFilters remove_quotes;
#pagespeed EnableFilters trim_urls;
#pagespeed EnableFilters outline_css;
#pagespeed EnableFilters combine_css;
#pagespeed EnableFilters inline_import_to_link;
#pagespeed EnableFilters inline_css;
#pagespeed EnableFilters inline_google_font_css;
#pagespeed EnableFilters move_css_above_scripts;
#pagespeed EnableFilters move_css_to_head;
#pagespeed EnableFilters prioritize_critical_css;
#pagespeed EnableFilters rewrite_css;
#pagespeed EnableFilters fallback_rewrite_css_urls;
#pagespeed EnableFilters rewrite_style_attributes_with_url;
#pagespeed PermitIdsForCssCombining *-css;
You received this message because you are subscribed to a topic in the Google Groups "ngx-pagespeed-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ngx-pagespeed-discuss/StHt5vVJMpg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ngx-pagespeed-discuss/305a3e5e-cc6c-4d95-b52b-d95b867965bd%40googlegroups.com.
pagespeed SslCertDirectory directory; pagespeed SslCertFile file;
Yes, Single server with SSD storage. This is a linode $5 box.Please note pagespeed RewriteLevel OptimizeForBandwidth enables few filters and only these filters are enabled for this site. I am attaching the pagespeed cache directives below.
I have also enabled debug filter so that you get maximum information. Do let me know if you need more information.
Try to put the lines below at the same level (http block, I think) that are the cache config:pagespeed Domain http*://*.depanache.in;pagespeed SslCertDirectory directory; pagespeed SslCertFile file;if debian/ubuntu distro only the directory, if red hat/centos both directory and file.In the attached image you can see a permision to rewrite issue, I think s for don´t have the pagespeed Domain directive.And you can see a message related to file cache. Can´t read the file /var/ngx_pagespeed_cache/!clean!time! , maybe a file permission in the directory. The user you use to run nginx must can read/write the directory /var/ngx_pagespeed_cache.
pagespeed FileCachePath /var/ngx_pagespeed_cache/;
pagespeed FileCacheSizeKb 102400; pagespeed FileCacheCleanIntervalMs 3600000;
pagespeed FileCachePath /var/ngx_pagespeed_cache/; is donepagespeed SslCertDirectory /etc/ssl/certs/; is done
Is it failing to rewrite HTML coz of this?[https://mumbai16.depanache.in/:6] Unrecognized script:'<script type="application/ld+json"></script> 6...36'
Is this something to worry about?