We were trying to optimise the website using google pagespeed and now having some issue:
- We're using nginx_pagespeed module
- Trying to enable the prioritize_critical_css filter
- Since the CSS files are loading from external CDN domain, the critical css filter is not working.
When ran with the ?PageSpeedFilters=debug, the following error is generated in the html source
Summary computation status for CriticalCssBeacon
Resource 0 https://mycdndomain.com/styles/screen-2d470013.css: Cannot create resource: either its domain is unauthorized and InlineUnauthorizedResources is not enabled, or it cannot be fetched (check the server logs)
mycdndomain is our CDN domain.
Can someone help me fixing this issue. What nginx pagespeed configuration changes are required ?
Also what is the