Purging with response

Comments

3 comments

  • Peter Wohlers

    Hi-

    The short answer is no.

    The cached objects would retain their Surrogate-Key associations until they refreshed with objects that didn't have them.

    i.e. once an object is cached, there's no changing the headers until that object refreshes/purges.

    There currently isn't a way to purge multiple SKs at the same time, but you can have multiple keys on objects as well (there's 16k of keyspace available with a 1k limit for any individual key). This provides users the flexibility to create surrogate keys that capture different types of associations.

    Hope this helps.

    0
    Comment actions Permalink
  • Amir Yalon

    Hi Peter,

    Ignore the Surrogate-Key header for the sake of the current discussion. This is actually a feature request for a hypothetical Purge-Surrogate-Keys header, which would instruct Fastly to purge the listed keys, thus saving a number of round-trips between the customer application and the API.

    0
    Comment actions Permalink
  • 0x0badc0de

    We also facing random fastly connectivity issues like connection reset by peer while trying to send purge requests so if we were able to purge keys with response using the connection fastly already has to our backend - that would be really useful and reliable.

    0
    Comment actions Permalink

Please sign in to leave a comment.