SupportNoScriptEnabled and Googlebot user-agent not working

86 views
Skip to first unread message

Viliam Mihálik

unread,
Apr 16, 2019, 6:48:29 AM4/16/19
to ngx-pagespeed-discuss
Hello,
 I testing SupportNoScriptEnabled with following user-agent:  Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.htmlfrom https://support.google.com/webmasters/answer/1061943?hl=en. When you try to fetch url with filter lazyload_images for example, for Googlebot user agent noscript not work. I attached two images with Googlebot user agent and Chrome user agent. You can see that noscipt part with redirect is not included. According to documentation(https://www.modpagespeed.com/doc/faq#noscript-redirect) it should work with "defer_javascriptlazyload_imagesdedup_inlined_images, and local_storage_cache". I test all filters and problem is with all filters excpet defer_javascript.  Use case is when you want to detect noscript user via noscript get parameter you need to have enabled defer_javascript filter, but this exact filter cause problem in my application so ia am unable to detect if google bot access my page without JS.
google.PNG
normal.PNG

Baruch Magalnik

unread,
Apr 22, 2019, 4:24:32 AM4/22/19
to ngx-pagesp...@googlegroups.com
Hello,
Thanks for the professional answer, 
But I'm not a professional website builder.
Please, explain to me how to correct errors.
Baruch

בתאריך יום ג׳, 16 באפר' 2019, 13:48, מאת Viliam Mihálik ‏<mihali...@gmail.com>:
Hello,
 I testing SupportNoScriptEnabled with following user-agent:  Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.htmlfrom https://support.google.com/webmasters/answer/1061943?hl=en. When you try to fetch url with filter lazyload_images for example, for Googlebot user agent noscript not work. I attached two images with Googlebot user agent and Chrome user agent. You can see that noscipt part with redirect is not included. According to documentation(https://www.modpagespeed.com/doc/faq#noscript-redirect) it should work with "defer_javascriptlazyload_imagesdedup_inlined_images, and local_storage_cache". I test all filters and problem is with all filters excpet defer_javascript.  Use case is when you want to detect noscript user via noscript get parameter you need to have enabled defer_javascript filter, but this exact filter cause problem in my application so ia am unable to detect if google bot access my page without JS.

--
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.
Visit this group at https://groups.google.com/group/ngx-pagespeed-discuss.
For more options, visit https://groups.google.com/d/optout.

Viliam Mihálik

unread,
May 2, 2019, 11:44:44 AM5/2/19
to ngx-pagespeed-discuss
It's more like quedtion than answer :)
Reply all
Reply to author
Forward
0 new messages