Keep hotlink 403s out of CDN and browser caches
The tile hotlink refusal is sent with Cache-Control: no-store from LuPhoto, Caddy and nginx instead of inheriting the one-year immutable header. cloudflare.md explains that edge-cached tiles bypass the origin Referer check, recommends a WAF rule for /t/, and notes that tile URLs depend only on the photo, the settings and the site key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c87aad0254
commit
e48a1eacf4
4 files changed
+8
-3
No files matched your search
@@ -54,6 +54,7 @@ server {
|
||||
|
||||
location /t/ {
|
||||
if ($luphoto_hotlink) {
|
||||
add_header Cache-Control "no-store" always;
|
||||
return 403;
|
||||
}
|
||||
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||
|
||||
Reference in new issue
Block a user