No affect seen on (some) pages

27 views
Skip to first unread message

Stephen Parker

unread,
Oct 1, 2016, 9:09:41 AM10/1/16
to mod-pagespeed-discuss
I am attempting to install mod pagespeed to prioritize critical CSS and other modules on my web application (Apache Server, Elastic Beanstalk).

Here is my config file:

AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeed On
ModPagespeedRewriteLevel CoreFilters
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedDomain http://cdn.datatables.net
ModPagespeedDomain http://ajax.googleapis.com
ModPagespeedDomain http://cdnjs.cloudflare.com

When I examine the landing page for my site:


I see that pagespeed has injected a couple of DOM elements into my page.  I see a noscript element and a data-pagespeed-no-defer element. I also see that in the header
  1. X-Mod-Pagespeed:
    1.11.33.2-0
Is defined. It does not appear the actually fix the "prioritize css" issues on the page, I've run pagespeed insights and the warning is still there.

Also, none of my sub pages have any pagespeed DOM elements added for example (data-pagespeed-no-defer).



Any thoughts?

Longinos

unread,
Oct 3, 2016, 3:13:27 PM10/3/16
to mod-pagespeed-discuss
Read this https://developers.google.com/speed/pagespeed/module/faq
you see here that if you have headers like Cache-control: no-cache, MPS don´t work. Your headers are
  1. Cache-Control:
    max-age=0, no-cache, no-store, must-revalidate.

And are using a CDN, you must read https://developers.google.com/speed/pagespeed/module/downstream-caching

The directive ModPagespeedDomain is for domains that are using MPS. I don´t have experience in using MPS with CDN, but googling it sure you find some info for it.

I tried http://www.albiononline2d.com/?ModPagespeed=on&ModPagespeedFilters=collapse_whitespace, and some efect with spaces occurs.


https://maxcdn.uservoice.com/forums/27683-general/suggestions/7525363-allow-the-cdn-to-serve-files-optimized-with-mod-pa

https://www.maxcdn.com/blog/nginx-performance-tips-with-the-google-pagespeed-team/

https://groups.google.com/forum/#!topic/mod-pagespeed-discuss/SHGffzZFCUc


Sorry for not to be more helpfull

Reply all
Reply to author
Forward
0 new messages