compute@edge: Manipulating the cache key in Rust

Comments

3 comments

  • WE ARE HEAVY

    Hi Geordie,

    Did you come up with a solution for this?

    I Found the reference for the CacheOverride enum that you also refer to (https://docs.rs/fastly/0.7.0/fastly/handle/enum.CacheOverride.html).

    From what i can see (and understand 😅), It's a way to set the Surrogate Key, which seems to be happening under the hood from the HTTP Header.

    So, what i'm looking for, is the equivalent of the vcl_hash. In my case I want to be able to have control over the cache key for GraphQL request.

    Hope you found the missing piece 😊

    1
    Comment actions Permalink
  • Geordie Jay

    Interesting- I couldn’t find any reference to it in the 0.6.0 docs. I got in touch with fastly Support directly and they told me it’s currently not possible. As unsatisfying as that is I guess that’s the answer until further notice

    0
    Comment actions Permalink
  • Adrian

    Hello Geordie Jay and WE ARE HEAVY

    You are correct that we do not currently support manipulating the cache key with Compute@Edge. It is a functionality we plan to provide in the future, but it is unavailable at this time. 

    0
    Comment actions Permalink

Please sign in to leave a comment.