Whats is this header cf-bgj: h2pri

Hi,

From last few days we are getting these two new header
cf-bgj : h2pri
and
cf-request-id : 028604e6d50000df53499fc2XXXXXXX1

I am especially puzzled about cf-bgj What is that?

2 Likes

I know that cf-request-id is planned to replace cf-ray at some point (but not anytime soon).

Cf-bgj is for polish:

However i’m not sure what the value h2pri means for polish.

Are you on CF paid plans ? Could be for Enhanced HTTP/2 Prioritization ?

1 Like

I think it is not polish. Coz it is showing on HTML page.

I thought so too that it is http 2 priority. But it is showing even after disabling this option. (after clear cache).

I though it is related to brotli. Disabled it. But still showing.

We used to be on Business plan for 3 year. Now using Pro (downgraded last month, We have travel Niche website no business).

Curl

% curl -I https://example.com/most-romantic-things-portugal
HTTP/2 200 
date: Tue, 05 May 2020 11:06:00 GMT
content-type: text/html; charset=UTF-8
set-cookie: __cfduid=db5b784ca8702735547c1a6aecd5d656a1588676760; expires=Thu, 04-Jun-20 11:06:00 GMT; path=/; domain=.example.com; HttpOnly; SameSite=Lax; Secure
cache-control: max-age=1800, must-revalidate
cf-bgj: h2pri
vary: Accept-Encoding
cf-cache-status: HIT
accept-ranges: bytes
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
strict-transport-security: max-age=31536000; includeSubDomains; preload
server: cloudflare
cf-ray: 58e9fd57ac19df67-BOM
cf-request-id: 02861caaca0000df67c2898200000001

hmm that blows my theory out of the water :slight_smile:

@cloonan any clues ?

I thought polish before reading the entire thread…ya’ll nixed that early. I saw a “somewhat*” similar older issue with the recommendation to “the image is actually cached with the polish optimization. To resolve this you would need to touch the file(s) and purge the full cache or you could manually purge the individual images.”

*That user had polish enabled and then disabled, does that apply to you @user3011?

Last change in polish setting was 4 month ago. This is much recent. 1 saw it on 1 more website. Plus this is happening on HTML page not on JPG

I search at cloudflare support pages and in community, no answer. What should I do?

It is happening with SAFARI browser only. This header is not showing in chrome/firefox.

shows for me in Opera browser though

what exactly it is doing?

We see this on images. cf-bgj: imgq:85,h2pri So we are assuming it’s polish reducing the size of the images to 85% and triggering http2 priority(??).

Not seeing this header anymore now.

This topic was automatically closed after 14 days. New replies are no longer allowed.

The h2pri means it’s been processed to support HTTP/2 prioritization for Progressive Streaming of JPEGs.

2 Likes