Don
April 9, 2024, 6:33am
1
Hello
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.
Thank you
1 Like
sam
(Sam Saffron)
September 6, 2024, 7:11am
3
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
system
(system)
Closed
October 6, 2024, 7:11am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.