I have nginx with pagespeed module all set up, when i visit my webpage and check all the requests the browser makes to loading the site i realize that the x-page-speed is just set for the html file, all other files(.js, .css,etc) lack it, therebefore any optimization is missing for this files(the optimization in the html works great). You can check this behavior if you go to
flashcard-x.com.
here is my nginx.conf:
user www-data;
worker_processes 1;
#error_log logs/error.log; error_log logs/error.log notice; error_log
#logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
pagespeed on;
# Needs to exist and be writable by nginx.
pagespeed FileCachePath /var/ngx_pagespeed_cache;
pagespeed EnableFilters combine_css,rewrite_css,combine_javascript;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server{
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" "";$
location /ngx_pagespeed_statistics { allow all; }
location /ngx_pagespeed_global_statistics { allow all; }
location /ngx_pagespeed_message { allow all; }
listen 80;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}