mod pagespeed and AMP

48 views
Skip to first unread message

carter....@gmail.com

unread,
Feb 7, 2021, 7:37:52 AMFeb 7
to mod-pagespeed-discuss
I added AMP via a joomla plugin to a site well tuned for regular mod pagespeed, and it's done the AMP stuff perfectly apart from missing a section tagged <style amp-custom>. Anything I can do please? Thanks.

Joshua Marantz

unread,
Feb 7, 2021, 10:43:19 AMFeb 7
to mod-pagespeed-discuss
Actually I think it's working, but it doesn't look like you've enabled the "rewrite_css" filter. After I did that via

On Sun, Feb 7, 2021 at 7:37 AM carter....@gmail.com <carter....@gmail.com> wrote:
I added AMP via a joomla plugin to a site well tuned for regular mod pagespeed, and it's done the AMP stuff perfectly apart from missing a section tagged <style amp-custom>. Anything I can do please? Thanks.

--
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/0a3f0d4a-2ee6-499d-86d3-aa2dd6fc13b5n%40googlegroups.com.

Longinos

unread,
Feb 8, 2021, 4:04:16 AMFeb 8
to mod-pagespeed-discuss
Hi
In nginx you can do this:

#        set $disable_filters "";
#        if ($args = amp) {
#                set $disable_filters "prioritize_critical_css,inline_google_font_css";
#        }
#        if ($request_uri ~ /(amp/?)$ ){
#                set $disable_filters "prioritize_critical_css,inline_google_font_css";
#        }
#        pagespeed DisableFilters "$disable_filters";

to disble some filters for the amp request.
I think in apache some like that can be achieved in .htaccess.

Love Pattaya Thailand

unread,
Feb 8, 2021, 4:16:14 AMFeb 8
to mod-pagesp...@googlegroups.com
Can anyone explain what this group is about please 

--
 


Office Tel: +66 (0) 38 756 134
Mobile Tel: +66 (0) 92 789 5639

Follow us on our social media outlets...

Facebook  Google+  Twitter  YouTube  Tumblr  Instagram
Reply all
Reply to author
Forward
0 new messages