jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

[Boost] Critical CSS generation failure CF

Open haqadn opened this issue 1 year ago • 3 comments

I noticed in a tastewp site that critical CSS generation does not work. They use Cloud Flare and that may have something to do with it. The post request to set-provider-css is giving a 302 response, which I think might be related to what's going on.

Image

Image

haqadn avatar Mar 01 '24 10:03 haqadn

This might be related to the C.CSS issues @dilirity

haqadn avatar May 03 '24 12:05 haqadn

After some investigating, any endpoint ending with css has a 302 redirect. Even if you do a GET request.

It appears to be either a server configuration or cloudflare that's causing this.

dilirity avatar May 21 '24 08:05 dilirity

I've reached out to support for more information on this, as it appears it isn't something we can address on our end.

For our end, we could present this error in a way that makes sense. It's still a show stopper, however, the expanded message makes little sense to the user.

dilirity avatar May 21 '24 08:05 dilirity

tastewp responded and they have fixed the issue.

We have internal caching in place to decrease out traffic bandwidth and speed up sites out of the box, so users won’t need any plugin to optimize their sites. CSS is one of 30 extensions that we cache automatically but regex was configured to match any URL that ends with „css" not with „.css”.

We adjusted it and now the REST API from your example works properly, we updated it for all sites at TasteWP.

Tested and confirm that it works. Closing this.

dilirity avatar Jun 04 '24 08:06 dilirity