This is my ngx pagespeed config.--
pagespeed Statistics on;pagespeed StatisticsLogging on;pagespeed LogDir /var/log/pagespeed;pagespeed AdminPath /pagespeed_admin;pagespeed GlobalAdminPath /pagespeed_global_admin;#You can also enable some pages individually.pagespeed StatisticsPath /pagespeed_statistics;pagespeed GlobalStatisticsPath /pagespeed_global_statistics;pagespeed MessagesPath /pagespeed_message;pagespeed ConsolePath /pagespeed_console;pagespeed FileCachePath /var/ngx_pagespeed_cache;#pagespeed FileCacheSizeKb 102400;#pagespeed FileCacheCleanIntervalMs 3600000;#pagespeed FileCacheInodeLimit 500000;#pagespeed LRUCacheKbPerProcess 1024;#pagespeed LRUCacheByteLimit 16384;pagespeed EnableCachePurge on;pagespeed DefaultSharedMemoryCacheKB 150000;#pagespeed LoadFromFileCacheTtlMs 315360000000; # ten yearspagespeed FetchWithGzip on;pagespeed FetchHttps enable;pagespeed MessageBufferSize 100000;#pagespeed ImageMaxRewritesAtOnce -1;#pagespeed UseNativeFetcher off;#resolver 1.1.1.1;#pagespeed ProcessScriptVariables on;#pagespeed MaxCacheableContentLength -1;#pagespeed MaxSegmentLength 250;#pagespeed MaxCombinedCssBytes -1;#let's speed up PageSpeed by storing it in the super duper fast memcachedpagespeed MemcachedThreads 1;pagespeed MemcachedServers "127.0.0.1:11211";pagespeed CreateSharedMemoryMetadataCache /var/ngx_pagespeed_cache 512000;
# PageSpeed Configpagespeed on;pagespeed RewriteLevel OptimizeForBandwidth;#pagespeed LoadFromFile "http://$host" "$document_root";#pagespeed LoadFromFileRuleMatch Disallow \.php$;#pagespeed EnableFilters debug;#pagespeed EnableFilters extend_cache;## Text / HTMLpagespeed 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;## JavaScript#pagespeed EnableFilters combine_javascript;#pagespeed EnableFilters canonicalize_javascript_libraries;#pagespeed EnableFilters inline_javascript;##pagespeed AvoidRenamingIntrospectiveJavascript false;## CSS#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;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.in
curl -I https://mumbai16.depanache.inHTTP/2 200server: cloudflare-nginxcontent-type: text/htmlx-robots-tag: noindex, nofollow, nosnippet, noarchivex-content-type-options: nosniffstrict-transport-security: max-age=16070400; includeSubDomainsdate: Fri, 24 Jan 2020 10:59:47 GMTx-page-speed: 1.13.35.2-0cache-control: max-age=0, no-cacheSetup 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 on;
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;
## JavaScript
#pagespeed EnableFilters combine_javascript;
#pagespeed EnableFilters canonicalize_javascript_libraries;
#pagespeed EnableFilters inline_javascript;
##pagespeed AvoidRenamingIntrospectiveJavascript false;
## CSS
#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.
Hi Anurag
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.
/etc/ssl/certs
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'
FileCacheCleanIntervalMs 33600000
Is this something to worry about?
[Mon, 03 Feb 2020 04:28:16 GMT] [Info] [22522] Need to check cache size against target 104857600[Mon, 03 Feb 2020 04:28:16 GMT] [Info] [22522] Need to check cache size against target 104857600[Mon, 03 Feb 2020 04:28:16 GMT] [Info] [22522] Need to check cache size against target 104857600[Mon, 03 Feb 2020 04:28:16 GMT] [Info] [22522] Need to check cache size against target 104857600