Skip to content

Redirects are cached

It seems like the shorturl service send redirects such that browsers cache the result and do not trigger requests anymore, making changes to existing short-urls somewhat effectless.

λ ~/ curl -I https://fsmpi.eu/sprechstunde
HTTP/2 301 
server: nginx/1.18.0
date: Sun, 17 Apr 2022 15:12:55 GMT
content-type: text/html; charset=utf-8
content-length: 314
location: https://tickets.fsmpi.rwth-aachen.de/fsmpi/hoern-22q2/
strict-transport-security: max-age=15768000
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
referrer-policy: same-origin
expect-ct: max-age=86400, enforce
x-frame-options: DENY
content-security-policy: script-src https://cdn.fsmpi.rwth-aachen.de 'self'; frame-ancestors 'none'

Apparently, as StackOverflow states, "In the absense of cache control directives that specify otherwise, a 301 redirect defaults to being cached without any expiry date."

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information