#Internal only headers

5 messages · Page 1 of 1 (latest)

cold stone
#

Is it possible to add headers to a response which will only be present in workers/snippets that interact with that response within cloudflare. Trying to pass a version from a worker to a snippet without risking revealing that to clients.

undone oak
#

Best you can do is add it as a header and then remove in the snippet

#

If this was Worker -> Worker you could pass it in req.cf over service bindings

cold stone
#

Gotcha, makes sense. Do you know if there’s any way to persist variables / stores between snippet runs. Hard to find info cos everything is related to fetch caching

undone oak
#

you can put it in the global scope, if the isolate is re-used you'll still have those available