oschaaf commented on issue #1549: Pagespeed not combining .css
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1549#issuecomment-379582379
 
 
   The 404's for webp images you mention are a bit concerning, but looking at
   the page you linked
   it looks like they are solved, or at least for now. I do see a couple of
   jpg's urls with what looks like
   base64-encoded urls responding with 404 though.
   
   For most of the other items you posted:
   
   If you're new to the module, skimming the FAQ may be helpful:
   https://www.modpagespeed.com/doc/faq
   
   The debug filter may also be helpful:
   https://www.modpagespeed.com/doc/config_filters#unsupported-filters
   https://www.pagespeedguide.com/documentation/debugging
   
   Otto
   
   On Fri, Apr 6, 2018 at 10:20 PM anarchoi <notificati...@github.com> wrote:
   
   > I'm struggling to get page speed modules to work on this test site:
   > https://www.ni-dieu-ni-maitre2.com/tshirt-evolution-barcode-0016026448
   >
   >    - PageSpeed is not combining .css
   >    - Enabling convert_jpeg_to_webp causes 404 errors on the .webp files
   >    - css sprites module is not working
   >    - inline CSS is minified but not inline javascript
   >    - static JS files are not minified
   >    https://scripts.ni-dieu-ni-maitre2.com/jquery.zoom.js?v=16354
   >    - static CSS files are not minified
   >    https://scripts.ni-dieu-ni-maitre2.com/jquery.fancybox.css?v=2.1.5
   >
   > Some other mods are working correctly like insert_dns_prefetch and
   > collapse_whitespace
   >
   > I'm a novice with Linux stuff but I did a lot of trials and errors to try
   > to get it to work myself... But I need help :(
   >
   > # Google  Page Speed Configurations  read more about it from 
https://developers.google.com/speed/pagespeed/module/system
   > pagespeed FileCachePath  "/var/cache/nginx/";
   > pagespeed FileCacheSizeKb            102400;
   > pagespeed FileCacheCleanIntervalMs   3600000;
   > pagespeed FileCacheInodeLimit        500000;
   > # LRU Cache
   > pagespeed LRUCacheKbPerProcess     8192;
   > pagespeed LRUCacheByteLimit        16384;
   >
   > pagespeed UsePerVhostStatistics on;
   >
   > #Use memcached servers
   > #pagespeed MemcachedServers "host1:port1,host2:port2,host3:port3";
   >
   > # Purge Cache
   > pagespeed EnableCachePurge off;
   >
   > pagespeed FetchWithGzip on;
   > pagespeed HttpCacheCompressionLevel 9;
   >
   > # Added for per vhost coontrol
   > pagespeed RewriteLevel PassThrough;
   >
   > #pagespeed Domain *.ni-dieu-ni-maitre2.com;
   > #pagespeed Domain scripts.ni-dieu-ni-maitre2.com;
   >
   > pagespeed EnableFilters combine_css;
   > #pagespeed EnableFilters combine_javascript;
   > pagespeed EnableFilters inline_javascript;
   > pagespeed EnableFilters inline_css;
   > pagespeed EnableFilters make_google_analytics_async;
   > pagespeed EnableFilters collapse_whitespace;
   > pagespeed EnableFilters rewrite_css;
   > pagespeed EnableFilters insert_dns_prefetch;
   > #pagespeed EnableFilters lazyload_images;
   > pagespeed EnableFilters local_storage_cache;
   > pagespeed EnableFilters outline_css;
   > #pagespeed EnableFilters outline_javascript;
   > pagespeed EnableFilters prioritize_critical_css;
   > pagespeed EnableFilters resize_mobile_images;
   > pagespeed EnableFilters resize_rendered_image_dimensions;
   > pagespeed EnableFilters sprite_images;
   > pagespeed EnableFilters remove_quotes;
   > pagespeed EnableFilters dedup_inlined_images;
   > #pagespeed EnableFilters convert_jpeg_to_webp;  #causes 404 errors
   > pagespeed EnableFilters inline_images;
   > pagespeed EnableFilters rewrite_javascript;
   > #pagespeed LoadFromFile "https://scripts.ni-dieu-ni-maitre2.com/";          
              "/home/ndnmdev/public_html/scripts/";
   >
   > domain conf:
   >
   > #:nginx:Nginx+ PHP-FPM Default  Stand Alone:2.0:
   > server {
   >     listen    144.217.68.82:443 ssl http2 ;
   >     server_name  ni-dieu-ni-maitre2.com www.ni-dieu-ni-maitre2.com;
   >     root /home/ndnmdev/public_html;
   >     index index.php index.php5 index.php4 index.php3 index.perl index.pl  
index.cgi  index.phtml index.shtml index.xhtml index.html index.htm $
   >
   >     ssl on;
   >     ssl_certificate 
/usr/local/nginx/conf/ssl.cert.d/ni-dieu-ni-maitre2.com_cert;
   >     ssl_certificate_key 
/usr/local/nginx/conf/ssl.key.d/ni-dieu-ni-maitre2.com_key;
   >     ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
   >     ssl_prefer_server_ciphers on;
   >     ssl_ciphers 
"ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-A$
   >     ssl_session_cache shared:SSL:10m;
   >     ssl_session_timeout  5m;
   >
   >     #.............. Cpnginx OCSP stapling protection for security start 
....................
   >     ssl_stapling on;
   >     ssl_stapling_verify on;
   >     ssl_trusted_certificate 
/usr/local/nginx/conf/ssl.ca.d/ni-dieu-ni-maitre2.com_ca-bundle;
   >     resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2  valid=300s;
   >     resolver_timeout 5s;
   >     #.............. Cpnginx OCSP stapling protection for security 
end....................
   >
   >     location = /favicon.ico {
   >         log_not_found off;
   >     }
   >
   >
   >     access_log /usr/local/apache/domlogs/ni-dieu-ni-maitre2.com-bytes_log 
bytes_log buffer=32k flush=5m;
   >     access_log /usr/local/apache/domlogs/ni-dieu-ni-maitre2.com-ssl_log 
combined buffer=32k flush=5m;
   >
   >     referer_hash_bucket_size 512;
   >     # Run Staic  file directly from nginx
   >     location ~* 
^.+.(gif|ico|zip|tgz|gz|rar|bz2|iso|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|ogv|ogg|flv|swf|mpeg|mpg|mpeg4|mp4|av$
   >         expires 30d;
   >         add_header Pragma public;
   >         add_header Cache-Control "public, must-revalidate, 
proxy-revalidate";
   >     }
   >     keepalive_requests 100;
   >     keepalive_timeout 60s;
   >     autoindex on;
   >     # Disable direct access to .ht files and folders
   >     location ~ /\.ht {
   >           deny all;
   >     }
   >     # Access all cpanel services
   >     location ~* 
^/(cpanel|webmail|whm|bandwidth|img-sys|java-sys|mailman/archives|pipermail|sys_cpanel|cgi-sys|mailman)
 {
   >         proxy_pass   http://144.217.68.82:9080;
   >         proxy_set_header   Host   $host;
   >         proxy_set_header   X-Real-IP  $remote_addr;
   >         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
   >     }
   >
   >
   >
   >
   >
   >     location ~ \.php$ {
   >         try_files $uri =404;
   >         fastcgi_pass 
unix:/opt/cpanel/ea-php70/root/usr/var/run/php-fpm/ndnmdev.sock;
   >         fastcgi_index index.php;
   >         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   >         include /usr/local/nginx/conf/fastcgi_params;
   >
   >         }
   >
   >     # Enable google Page speed
   >     pagespeed on;
   >     pagespeed RespectVary on;
   >     # Ensure requests for pagespeed optimized resources go to the 
pagespeed handler  and no extraneous headers get set.
   >     location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
   >         add_header "" "";
   >     }
   >     location ~ "^/pagespeed_static/" { }
   >     location ~ "^/ngx_pagespeed_beacon$" { }
   >     location /ngx_pagespeed_statistics { allow 127.0.0.1; deny all; }
   >     location /ngx_pagespeed_global_statistics { allow 127.0.0.1; deny all; 
}
   >     location /ngx_pagespeed_message { allow 127.0.0.1; deny all; }
   >     location /pagespeed_console { allow 127.0.0.1; deny all; }
   >     location ~ ^/pagespeed_admin { allow 127.0.0.1; deny all; }
   >     location ~ ^/pagespeed_global_admin { allow 127.0.0.1; deny all; }
   >     # filters
   >     pagespeed RewriteLevel CoreFilters;
   >     pagespeed PreserveUrlRelativity on;
   >     pagespeed DisableFilters 
rewrite_css,rewrite_javascript,combine_css,inline_css,rewrite_images;
   >     pagespeed EnableFilters fallback_rewrite_css_urls;
   >
   >     # Map domain works as a  cdn
   >     pagespeed Domain https://www2.ni-dieu-ni-maitre2.com;
   >
   >     # Map Original Domains
   >     pagespeed MapOriginDomain origin_to_fetch_from 
origin_specified_in_html [host_header];
   >
   >     # Respect froned Proxy
   >     pagespeed RespectXForwardedProto on;
   >     # Allow Let's Encrypt client authentication - letsencrypt.org RFC 5785
   >     location ~ /.well-known { allow all; }
   >
   >     location / {
   >         include 
/usr/local/nginx/conf/vhost.ssl.d/ni-dieu-ni-maitre2.com.rewrite;
   >         client_max_body_size    2000m;
   >         client_body_buffer_size 512k;
   >         try_files $uri $uri/ /index.php?$args;
   >
   >
   >     }
   >     # include 
/usr/local/nginx/conf/vhost.ssl.d/ni-dieu-ni-maitre2.com.include;
   >
   > }
   >
   >
   >
   >
   >
   > server {
   >     listen    144.217.68.82:443 ssl http2 ;
   >     server_name cpanel.ni-dieu-ni-maitre2.com whm.ni-dieu-ni-maitre2.com 
webmail.ni-dieu-ni-maitre2.com webdisk.ni-dieu-ni-maitre2.com cpcalen$
   >     ssl on;
   >     ssl_certificate 
/usr/local/nginx/conf/ssl.cert.d/ni-dieu-ni-maitre2.com_cert;
   >     ssl_certificate_key 
/usr/local/nginx/conf/ssl.key.d/ni-dieu-ni-maitre2.com_key;
   >     ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
   >     ssl_session_cache shared:SSL:10m;
   >     ssl_session_timeout  5m;
   >     access_log off;
   >     location / {
   >             location ~ /.well-known{
   >                 root /home/ndnmdev/public_html;
   >             }
   >         proxy_pass   https://127.0.0.1:9443;
   >         proxy_set_header   Host   $host;
   >         proxy_set_header   X-Real-IP  $remote_addr;
   >         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
   >     }
   > }
   >
   >
   >
   >
   >
   >
   >
   >
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/incubator-pagespeed-ngx/issues/1549>, or mute
   > the thread
   > 
<https://github.com/notifications/unsubscribe-auth/ACIsRHF3vQtjfaKRqoTxokri9Kihjs2aks5tl83_gaJpZM4TKpku>
   > .
   >
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to