anarchoi opened a new issue #1549: Pagespeed not combining .css
   I'm struggling to get page speed modules to work on this test site:
   - 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
   - static CSS files are not minified
   Some other mods are working correctly like insert_dns_prefetch and 
   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
   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 *;
   #pagespeed Domain;
   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 "";            
   domain conf:
   #:nginx:Nginx+ PHP-FPM Default  Stand Alone:2.0:
   server {
       listen ssl http2 ;
       root /home/ndnmdev/public_html;
       index index.php index.php5 index.php4 index.php3 index.perl  
index.cgi  index.phtml index.shtml index.xhtml index.html index.htm $
       ssl on;
       ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
       ssl_prefer_server_ciphers on;
       ssl_session_cache shared:SSL:10m;
       ssl_session_timeout  5m;
       #.............. Cpnginx OCSP stapling protection for security start 
       ssl_stapling on;
       ssl_stapling_verify on;
       resolver  valid=300s;
       resolver_timeout 5s;
       #.............. Cpnginx OCSP stapling protection for security 
       location = /favicon.ico {
           log_not_found off;
       access_log /usr/local/apache/domlogs/ 
bytes_log buffer=32k flush=5m;
       access_log /usr/local/apache/domlogs/ 
combined buffer=32k flush=5m;
       referer_hash_bucket_size 512;
       # Run Staic  file directly from nginx
       location ~* 
           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 ~* 
           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_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; deny all; }
       location /ngx_pagespeed_global_statistics { allow; deny all; }
       location /ngx_pagespeed_message { allow; deny all; }
       location /pagespeed_console { allow; deny all; }
       location ~ ^/pagespeed_admin { allow; deny all; }
       location ~ ^/pagespeed_global_admin { allow; deny all; }
       # filters
       pagespeed RewriteLevel CoreFilters;
       pagespeed PreserveUrlRelativity on;
       pagespeed DisableFilters 
       pagespeed EnableFilters fallback_rewrite_css_urls;
       # Map domain works as a  cdn
       pagespeed Domain;
       # Map Original Domains
       pagespeed MapOriginDomain origin_to_fetch_from origin_specified_in_html 
       # Respect froned Proxy
       pagespeed RespectXForwardedProto on;
       # Allow Let's Encrypt client authentication - RFC 5785
       location ~ /.well-known { allow all; }
       location / {
           client_max_body_size    2000m;
           client_body_buffer_size 512k;
           try_files $uri $uri/ /index.php?$args;
       # include 
   server {
       listen ssl http2 ;
       server_name cpcalen$
       ssl on;
       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_set_header   Host   $host;
           proxy_set_header   X-Real-IP  $remote_addr;
           proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;

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:

With regards,
Apache Git Services

Reply via email to