HackTJ/live

Disable FLoC

Opened this issue · 0 comments

Background

We do this on our main website (because of GitHub Pages). To be honest, I doubt FLoC will learn anything really useful from people who use Live, but it doesn't hurt to set this header.

(see https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea for why FLoC is bad. SvelteKit has recently adopted this change)

Implementation

pretty simple, just set the header in a middleware so it's applied on all responses

https://stackoverflow.com/a/36099405/7127932