Apache ModPagespeed not minimizing CSS

29 views
Skip to first unread message

Jordan Mendler

unread,
Oct 19, 2016, 3:47:44 AM10/19/16
to mod-pagespeed-discuss
I installed ModPagespeed on debian/apache from the .deb and am using the default Pagespeed config. I run a handful of Virtual Hosts, and while modpagespeed is running, it does not seem to minifying CSS.

An example of Pagespeed generated CSS that is not being minimized is https://www.thevelozgroup.com/css/stylesheet.css+animation.css+popup.css.pagespeed.cc.LXI9v-F3hQ.css. It is aggregating CSS files, but doesn't seem to by minifying them or stripping comments.

Anyone have any suggestions as to what the issue may be?

Jeff Kaufman

unread,
Oct 19, 2016, 8:20:19 AM10/19/16
to mod-pagespeed-discuss
Fetching your page with ?PageSpeedFilters=+debug , which inserts
debugging comments into the html to describe why PageSpeed decided to
do things, I initially saw the combined non-minified css file with a
debug comment saying "deadline exceeded". Refreshing again I saw it
minified: https://www.thevelozgroup.com/css/A.stylesheet.css+animation.css+popup.css,Mcc.LXI9v-F3hQ.css.pagespeed.cf.LT7JxTatLz.css

Once PageSpeed minifies it, it should keep serving the optimized
version as long as your site keeps getting traffic. The cache
lifetime you have set on the input files is 300s, though, which means
that if you get fewer than one hit per 300s you will probably be
serving some traffic unoptimized. (If that's happening, you could
turn on ModPagespeedLoadFromFile or increase your origin cache
lifetime.)
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mod-pagespeed-di...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mod-pagespeed-discuss/c53b237d-f747-444f-b6a8-6576cd3100a1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages