request two function of r2 1. support redirect object 2. support bind custom domain with prefix Fo

request two function of r2

  1. support redirect object
  2. support bind custom domain with prefix
For example:
have two object:
object1/test.txt the content is “test1111
object2/test2.txt set redirect to object1/test.txt in metadata (the object is 0 bytes file only set matedata

Then request
https://domain/object1/test.txt
response filename test.txt with content test1111
https://domain/object2/test2.txt
response filename test2.txt with content test1111

and if bind domain2 with prefix:object2

will support use

https://domain2/test2.txt

to request /object2/test2.txt

of course it can be implement with workers but it will cost more
Was this page helpful?