mirror of
https://github.com/direct-img/direct-img.link.git
synced 2026-10-29 15:34:51 +00:00
Rule conditions see the original path, so chained rules can't encode +s. One rule per number of +s does it instead, which only fits the free plan's 10 rules if they're shared by all sites, so static files now live under their hostname (/free.direct-img.link/1/orange%2Bcat). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
588 B
Plaintext
15 lines
588 B
Plaintext
# Promoted images (scripts/promote.js) have no file extension, so they'd go out without a Content-Type. Browsers detect
|
|
# JPEG, PNG, GIF and WebP from the bytes whatever type is declared, so promote.js promotes only those.
|
|
/direct-img.link/*
|
|
Content-Type: image/jpeg
|
|
Cache-Control: public, max-age=604800
|
|
Access-Control-Allow-Origin: *
|
|
/free.direct-img.link/*
|
|
Content-Type: image/jpeg
|
|
Cache-Control: public, max-age=604800
|
|
Access-Control-Allow-Origin: *
|
|
/ai.direct-img.link/*
|
|
Content-Type: image/jpeg
|
|
Cache-Control: public, max-age=604800
|
|
Access-Control-Allow-Origin: *
|