Question about 'early hint header' global settings

Hello :wave:

When this EXPERIMENTAL: preconnect and dns-prefetch resource hints for CDN doma… · discourse/discourse@36cdb14 · GitHub site setting has been available I enabled this on my site. After then this commit has been changed to global settings here DEV: Consolidate experimental 'Link' header implementations (#26377) · discourse/discourse@1cc8c72 · GitHub

I’ve enabled the GlobalSetting early_hint_header_mode preconnect but I see there is an other GlobalSetting early_hint_header_mode prefetch. Is that possible to enabled both or maybe am I misunderstood something. :thinking:

Thank you :slightly_smiling_face:

1 Like

The only way of tuning early_hint_header_mode is via global settings.

This is generally done by setting environment for the container:

DISCOURSE_EARLY_HINT_MODE can be preconnect or preload or prefetch or blank.

Self hosters would do so in that app.yml file.

This setting is only able to come with one value. Self hosters can validate what it is with:

./launcher enter app
rails c
> GlobalSetting.early_hint_header_mode

Early hints are a rather complex setup cause the proxy needs to support them and they are not supported by many proxies.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.