ngx_pagespeed works well with WordPress with its default configuration:
pagespeed on;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/ngx_pagespeed_cache;
# 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$" { }
You also probably want a caching plugin for wordpress, so it doesn't
have to generate your pages on demand.
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ngx-pagespeed-di...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/ngx-pagespeed-discuss.
> For more options, visit
https://groups.google.com/d/optout.