Cache and prioritize_critical_css filter reuse

Skip to first unread message


Nov 4, 2020, 1:08:50 PM11/4/20
to mod-pagespeed-discuss

I'm currently experimenting with this library, and was wondering if a certain funcionality is possible. For example, let's say I have a dynamic website, with pages generated on the fly with a structured URL like[some-dynamic-slug]. With this in place, as of my understanding, the prioritize_critical_css filter needs to access each auto generated page a couple of times until it does it's magic. But, given the nature of the structured dynamic content and static assets (yes, it's not a general use case, but bare with me), the Critical CSS will be pratically the same for each page generated at /post/[some-dynamic-slug]. The question is, is there a way to instruct mod-pagespeed to reuse it's previously calculated prioritize_critical_css given a pattern? I looked up the docs, but couldn't find anything like this.


Joshua Marantz

Nov 4, 2020, 1:32:16 PM11/4/20
to mod-pagespeed-discuss
I'm vaguely remembering discussion around an option to drop query-params from property-cache keys, but can't remember whether that feature got built. And I can't find it in the docs.

In that case if your structured URL was you'd be good to go.

I could also see some sort of suffix-drop configuration that would allow your exact URL pattern to work, but I don't think that exists.

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
To view this discussion on the web visit
Reply all
Reply to author
0 new messages