[GitHub] [incubator-pagespeed-ngx] ozdemirburak commented on issue #1565: How to disable POST ngx_pagespeed_beacon?
ozdemirburak commented on issue #1565: URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1565#issuecomment-812932832 Thanks, @Lofesa. Your answers are really helpful for anyone facing this issue. For my case, I think [prioritize_critical_css](https://www.modpagespeed.com/doc/filter-prioritize-critical-css) was the one that caused this behavior for me. -- 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
[GitHub] [incubator-pagespeed-ngx] ozdemirburak commented on issue #1565: How to disable POST ngx_pagespeed_beacon?
ozdemirburak commented on issue #1565: URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1565#issuecomment-812910238 Thanks for your reply @Lofesa. > Where have you set this directive? I included my pagespeed configuration under a server block. I tried that location directive because the document linked above mentions disabling image rewriting filters or directly denying the requests. And here is the reason why I disabled these filters specifically. Here is the passage from [another documentation page](https://www.modpagespeed.com/doc/config_filters): > The lazyload_images, inline_preview_images, and inline_images filters, use a beacon to collect information about the rewritten page so as to optimize the rewriting process. The beacon is a POST request sent back by JavaScript inserted into the page by the filter. The use of this beacon is on by default but it can be disabled using: If I need to disable nearly all image filters, which image filters my configuration is missing? On the other hand, I'll try `OptimizeForBandwidth`. -- 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
[GitHub] [incubator-pagespeed-ngx] ozdemirburak commented on issue #1565: How to disable POST ngx_pagespeed_beacon?
ozdemirburak commented on issue #1565: URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1565#issuecomment-812892800 I tried both configurations, but none of them works for nginx. @oschaaf, I'd be grateful if you can provide a better solution for nginx. ```nginx pagespeed CriticalImagesBeaconEnabled false; pagespeed DisableFilters lazyload_images; pagespeed DisableFilters inline_images; pagespeed DisableFilters inline_preview_images; pagespeed DisableFilters rewrite_images; # location ~ "^/ngx_pagespeed_beacon$" { } location ~ "^/ngx_pagespeed_beacon$" { deny all; } ``` -- 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