honzabit
CDCloudflare Developers
•Created by honzabit on 9/26/2023 in #general-help
Cache not fragmented by protocol?
Hey all, we have a strange case where we route traffic through a worker to our origin, and the backend service listens on both HTTP & HTTPS endpoint, with the HTTP redirecting (301) to HTTPS. The problem we are seeing is that when a request comes for an asset through HTTP, our origin will respond with the 301 redirect, which will come back to the client through the worker and get cached. So far, I would say that everything makes sense. The problem is that when the client will request the asset through HTTPS (using the location we sent back), he will get back again a 301 REDIRECT response (through CF cache this time), which doesn't make much sense as the protocol is different from the previous request. This ends up in endless redirect loop. Is this a known behaviour? I couldn't find any info online.
6 replies
CDCloudflare Developers
•Created by honzabit on 8/3/2023 in #workers-help
Access deployment ID through worker's code
Hey all, anyone knows if the deployment ID gets exposed to the worker's environment? I cannot find any related documentation about it and I am thinking to use it on the sentry side.
1 replies