Weighs the soul of incoming HTTP requests to stop AI crawlers

fix(internal): register mime type for .mjs files (#577)

Closes #575

I'm gonna be totally honest, I'm not sure if this is needed. However,
measure twice, cut once.

Signed-off-by: Xe Iaso <me@xeiaso.net>

authored by

Xe Iaso and committed by
GitHub
669671bd 6c247cde

+8
+1
docs/docs/CHANGELOG.md
··· 24 24 - Rename cookies in response to user feedback 25 25 - Ensure cookie renaming is consistent across configuration options 26 26 - Add Bookstack app in data 27 + - Ensure client JavaScript is served with Content-Type text/javascript. 27 28 - Add `--target-host` flag/envvar to allow changing the value of the Host header in requests forwarded to the target service. 28 29 - Bump AI-robots.txt to version 1.31 29 30 - Add `RuntimeDirectory` to systemd unit settings so native packages can listen over unix sockets
+7
internal/mimetype.go
··· 1 + package internal 2 + 3 + import "mime" 4 + 5 + func init() { 6 + mime.AddExtensionType(".mjs", "text/javascript") 7 + }