You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2021/02/08 21:47:33 UTC

[GitHub] [incubator-pagespeed-ngx] wafedsf5 opened a new issue #1728: Nginx - Pagespeed & Static Content Issue

wafedsf5 opened a new issue #1728:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1728


   Good night programmers, I've been having a problem with pagespeed for some time now, which led me to disable it in the past, but at the moment I really wanted to solve the problem and start using pagespeed.
   
   To try to explain the problem, when I'm using pagespeed all the static content becomes unreadable, and I can give you some example on a CSS file: Without pagespeed: https://i.imgur.com/qgmZeER.png With pagespeed: https://i.imgur.com/o9oLeCi.png This happens in CSS & JS.
   
   I tried to default configurations that I found on the internet, my own configurations, disabling each setting... Nothing seems to work, I'm using nginx as Reverse Proxy, and connections are being passed with proxy_pass Nginx version: OpenResty 1.19.3.1 PageSpeed version: v1.13.35.2-stable PSOL is also configured for the v1.13.35.2 version.
   
   Server Block:
   
   Pagespeed configurations
   
   Server block:
   ```
   pagespeed on;
   pagespeed RewriteLevel OptimizeForBandwidth;
   
   location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
   add_header "" "";
   }
   location ~ "^/pagespeed_static/" { }
   location ~ "^/ngx_pagespeed_beacon$" { }
   
   ## PageSpeed Cache Purge
   pagespeed EnableCachePurge on;
   pagespeed PurgeMethod PURGE;
   pagespeed DownstreamCacheRewrittenPercentageThreshold 95;
   
   ## Minify
   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 EnableFilters combine_javascript;
   pagespeed EnableFilters canonicalize_javascript_libraries;
   pagespeed EnableFilters inline_javascript;
   ## Speed-up
   pagespeed EnableFilters dedup_inlined_images;
   pagespeed EnableFilters inline_preview_images;
   pagespeed EnableFilters resize_mobile_images;
   pagespeed EnableFilters lazyload_images;
   pagespeed EnableFilters inline_images;
   pagespeed EnableFilters convert_gif_to_png;
   pagespeed EnableFilters convert_jpeg_to_progressive;
   pagespeed EnableFilters recompress_jpeg;
   pagespeed EnableFilters recompress_png;
   pagespeed EnableFilters recompress_webp;
   pagespeed EnableFilters strip_image_color_profile;
   pagespeed EnableFilters strip_image_meta_data;
   pagespeed EnableFilters jpeg_subsampling;
   pagespeed EnableFilters convert_png_to_jpeg;
   pagespeed EnableFilters resize_images;
   pagespeed EnableFilters resize_rendered_image_dimensions;
   pagespeed EnableFilters convert_jpeg_to_webp;
   pagespeed EnableFilters convert_to_webp_lossless;
   pagespeed EnableFilters insert_image_dimensions;
   pagespeed NoTransformOptimizedImages on;
   pagespeed EnableFilters sprite_images;
   ```
   
   HTTP block:
   ```
   pagespeed RespectVary off;
   pagespeed ProcessScriptVariables on;
   pagespeed FetchWithGzip on;
   pagespeed DisableRewriteOnNoTransform off;
   pagespeed SupportNoScriptEnabled false;
   pagespeed ModifyCachingHeaders on;
   pagespeed MaxCacheableContentLength -1;
   pagespeed FileCachePath /ramdisk/nginx/cache/ngx_pagespeed/;
   pagespeed FileCacheSizeKb            102400;
   pagespeed FileCacheCleanIntervalMs   3600000;
   pagespeed FileCacheInodeLimit        500000;
   pagespeed LRUCacheKbPerProcess     1024;
   pagespeed LRUCacheByteLimit        16384;
   pagespeed MemcachedThreads 8;
   pagespeed MemcachedServers "localhost:11211";
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] wafedsf5 commented on issue #1728: Nginx - Pagespeed & Static Content Issue

Posted by GitBox <gi...@apache.org>.
wafedsf5 commented on issue #1728:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1728#issuecomment-775875870


   I found out that pagespeed is not working on HTTPS:// (only on HTTP://), I'm using Nginx as a reverse proxy and I have no idea how to make pagespeed work with HTTPS://, anyone can help?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] wafedsf5 commented on issue #1728: Nginx - Pagespeed & Static Content Issue

Posted by GitBox <gi...@apache.org>.
wafedsf5 commented on issue #1728:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1728#issuecomment-775901434


   The issue was fixed, this issue seems like using proxy protocol on HTTPS:// level, to fix this issue just needed to add
   `proxy_set_header Accept-Encoding "gzip";`
   on the location resource


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] wafedsf5 removed a comment on issue #1728: Nginx - Pagespeed & Static Content Issue

Posted by GitBox <gi...@apache.org>.
wafedsf5 removed a comment on issue #1728:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1728#issuecomment-775875870


   I found out that pagespeed is not working on HTTPS:// (only on HTTP://), I'm using Nginx as a reverse proxy and I have no idea how to make pagespeed work with HTTPS://, anyone can help?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-pagespeed-ngx] wafedsf5 closed issue #1728: Nginx - Pagespeed & Static Content Issue

Posted by GitBox <gi...@apache.org>.
wafedsf5 closed issue #1728:
URL: https://github.com/apache/incubator-pagespeed-ngx/issues/1728


   


----------------------------------------------------------------
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:
users@infra.apache.org