limited commented on PR #7771:
URL: https://github.com/apache/trafficcontrol/pull/7771#issuecomment-1716015873

   Here's the generated VCL from this change:
   ```
   sub vcl_recv {
        if ((req.method == "PUSH" || req.method == "PURGE" || req.method == 
"DELETE") && !client.ip ~ allow_all) {
                return (synth(405));
        }
        if (req.method == "PURGE") {
                return (purge);
        }
        if (req.http.host == "edge.demo1.mycdn.ciab.test") {
                set req.backend_hint = demo1.backend();
        }
        if (req.http.host == "video.demo2.mycdn.ciab.test") {
                set req.backend_hint = demo2.backend();
        }
   }
   sub vcl_backend_response {
        if (bereq.http.host == "origin.infra.ciab.test") {
                set beresp.uncacheable = true;
        }
   }
   sub vcl_backend_fetch {
        if (bereq.http.host == "edge.demo1.mycdn.ciab.test") {
                set bereq.http.host = "origin.infra.ciab.test";
        }
        if (bereq.http.host == "video.demo2.mycdn.ciab.test") {
                set bereq.http.host = "origin.infra.ciab.test";
        }
   }
   ```
   
   Because the same origin is shared between both delivery services, this will 
mark all requests to `origin.infra.ciab.test` as uncacheable. 
   
   Is there a way we can restrict the DS_NO_CACHE behavior just to the 
appropriate delivery service? (Maybe based on `bereq.http.Host`?)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to